-
Notifications
You must be signed in to change notification settings - Fork 28k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[MINOR][SQL] Add missing functions for some options in SQLConf and use them where applicable #14678
Conversation
Test build #63898 has finished for PR 14678 at commit
|
@@ -322,11 +322,6 @@ object SQLConf { | |||
.intConf | |||
.createWithDefault(4000) | |||
|
|||
val PARTITION_DISCOVERY_ENABLED = SQLConfigBuilder("spark.sql.sources.partitionDiscovery.enabled") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems we always enable this and this option is not referenced anywhere(?). Is this intendedly not used?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems the usage was removed while refactoring.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you do me a favor to check which PR removed the usage?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It sounds like we still keep another SQLConf PARALLEL_PARTITION_DISCOVERY_THRESHOLD
. However, the description of PARALLEL_PARTITION_DISCOVERY_THRESHOLD
is not right after the refactoring. Could you update the descriptions too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR #11509 removes the usage of PARTITION_DISCOVERY_ENABLED
. I think it is safe to remove this conf now.
cc @rxin, Could you check if this make sense please? |
Looks good, but I didn't look super carefully. @gatorsmile do you have time to take a more careful look at this? |
Test build #63899 has finished for PR 14678 at commit
|
Sure, will review it today. Thanks! |
Just searched the code and found more. Any reason why we do not change these?
|
nvm, I got the answer. We are unable to change them. Thanks! |
I checked the conf changes and the data types. It looks good to me. Only leave a minor comment on the conf description of one related parameter |
@gatorsmile Thanks for a very close look. I should've check the description of |
LGTM pending tests |
Test build #63959 has finished for PR 14678 at commit
|
(@rxin cc you in case you just missed this) |
ping @rxin |
@cloud-fan Do you mind if I ask to take a look please? |
retest this please |
LGTM |
Test build #65263 has finished for PR 14678 at commit
|
thanks, merging to master! |
Thanks but also FYI this is not "minor". We should have a JIRA ticket for changes like this in the future. |
…e them where applicable ## What changes were proposed in this pull request? I first thought they are missing because they are kind of hidden options but it seems they are just missing. For example, `spark.sql.parquet.mergeSchema` is documented in [sql-programming-guide.md](https://github.com/apache/spark/blob/master/docs/sql-programming-guide.md) but this function is missing whereas many options such as `spark.sql.join.preferSortMergeJoin` are not documented but have its own function individually. So, this PR suggests making them consistent by adding the missing functions for some options in `SQLConf` and use them where applicable, in order to make them more readable. ## How was this patch tested? Existing tests should cover this. Author: hyukjinkwon <gurwls223@gmail.com> Closes apache#14678 from HyukjinKwon/sqlconf-cleanup.
What changes were proposed in this pull request?
I first thought they are missing because they are kind of hidden options but it seems they are just missing.
For example,
spark.sql.parquet.mergeSchema
is documented in sql-programming-guide.md but this function is missing whereas many options such asspark.sql.join.preferSortMergeJoin
are not documented but have its own function individually.So, this PR suggests making them consistent by adding the missing functions for some options in
SQLConf
and use them where applicable, in order to make them more readable.How was this patch tested?
Existing tests should cover this.