Uh oh!
There was an error while loading. Please reload this page.
[MINOR][SQL] Add missing functions for some options in SQLConf and use them where applicable - #14678
[MINOR][SQL] Add missing functions for some options in SQLConf and use them where applicable#14678HyukjinKwon wants to merge 4 commits into
Conversation
SparkQA
commented
Aug 17, 2016
Test build #63898 has finished for PR 14678 at commit
|
| .intConf | ||
| .createWithDefault(4000) | ||
| val PARTITION_DISCOVERY_ENABLED = SQLConfigBuilder("spark.sql.sources.partitionDiscovery.enabled") |
There was a problem hiding this comment.
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.
It seems the usage was removed while refactoring.
There was a problem hiding this comment.
Could you do me a favor to check which PR removed the usage?
There was a problem hiding this comment.
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.
PR #11509 removes the usage of PARTITION_DISCOVERY_ENABLED. I think it is safe to remove this conf now.
HyukjinKwon
commented
Aug 17, 2016
cc @rxin, Could you check if this make sense please? |
rxin
commented
Aug 17, 2016
Looks good, but I didn't look super carefully. @gatorsmile do you have time to take a more careful look at this? |
SparkQA
commented
Aug 17, 2016
Test build #63899 has finished for PR 14678 at commit
|
gatorsmile
commented
Aug 17, 2016
Sure, will review it today. Thanks! |
gatorsmile
commented
Aug 17, 2016
Just searched the code and found more. Any reason why we do not change these? |
gatorsmile
commented
Aug 17, 2016
nvm, I got the answer. We are unable to change them. Thanks! |
gatorsmile
commented
Aug 17, 2016
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 |
HyukjinKwon
commented
Aug 18, 2016
@gatorsmile Thanks for a very close look. I should've check the description of |
gatorsmile
commented
Aug 18, 2016
LGTM pending tests |
SparkQA
commented
Aug 18, 2016
Test build #63959 has finished for PR 14678 at commit
|
HyukjinKwon
commented
Aug 19, 2016
(@rxin cc you in case you just missed this) |
HyukjinKwon
commented
Aug 30, 2016
ping @rxin |
HyukjinKwon
commented
Sep 9, 2016
@cloud-fan Do you mind if I ask to take a look please? |
cloud-fan
commented
Sep 12, 2016
retest this please |
cloud-fan
commented
Sep 12, 2016
LGTM |
SparkQA
commented
Sep 12, 2016
Test build #65263 has finished for PR 14678 at commit
|
cloud-fan
commented
Sep 14, 2016
thanks, merging to master! |
rxin
commented
Sep 16, 2016
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> Closesapache#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.mergeSchemais documented in sql-programming-guide.md but this function is missing whereas many options such asspark.sql.join.preferSortMergeJoinare not documented but have its own function individually.So, this PR suggests making them consistent by adding the missing functions for some options in
SQLConfand use them where applicable, in order to make them more readable.How was this patch tested?
Existing tests should cover this.