[SPARK-30234][SQL][FOLLOWUP] Rename spark.sql.legacy.addDirectory.recursive.enabled to spark.sql.legacy.addSingleFileInAddFile#27725
Conversation
…cursive.enabled` to `spark.sql.legacy.addSingleFileInAddFile`
|
ok to test |
|
Test build #119075 has finished for PR 27725 at commit
|
|
retest this please |
Ngone51
left a comment
There was a problem hiding this comment.
I'm actually OK with this change as it fix the inconsistent of the config.
But I still doubt whether we should treat it as legacy, here. To me, legacy just sounds like the previous behavior is not good, especially there's some problem with it. And, in practical, I believe Spark would aways recommend user to use the new behavior over the legacy behavior.
But, in this case, does Spark has a strong prefer to recommend user to use add directory when using ADD FILE? I think it depends on use case, right?
So, personally, I still think the config should be a new feature flag rather than legacy. And we can make it turn on by default to be friendly to user.
|
Test build #119079 has finished for PR 27725 at commit
|
It doesn't necessarily have to have a problem with it. We have a legacy configuration based on case-by-case, for example, when the previous behaviour has been widely used, newer behaviour supersedes the old behaviour, etc. Note that bugs have to be fixed without legacy config as a general guideline!
Also, I don't actually completely buy this argument #26863 (comment) since we already have different default values for legacy configurations, e.g., |
|
Merged to master and branch-3.0. |
…cursive.enabled` to `spark.sql.legacy.addSingleFileInAddFile` ### What changes were proposed in this pull request? Rename `spark.sql.legacy.addDirectory.recursive.enabled` to `spark.sql.legacy.addSingleFileInAddFile` ### Why are the changes needed? To follow the naming convention ### Does this PR introduce any user-facing change? No ### How was this patch tested? Existing UTs. Closes #27725 from iRakson/SPARK-30234_CONFIG. Authored-by: iRakson <raksonrakesh@gmail.com> Signed-off-by: HyukjinKwon <gurwls223@apache.org> (cherry picked from commit 92a5ae2) Signed-off-by: HyukjinKwon <gurwls223@apache.org>
Spark will have support a directory in |
…cursive.enabled` to `spark.sql.legacy.addSingleFileInAddFile` ### What changes were proposed in this pull request? Rename `spark.sql.legacy.addDirectory.recursive.enabled` to `spark.sql.legacy.addSingleFileInAddFile` ### Why are the changes needed? To follow the naming convention ### Does this PR introduce any user-facing change? No ### How was this patch tested? Existing UTs. Closes apache#27725 from iRakson/SPARK-30234_CONFIG. Authored-by: iRakson <raksonrakesh@gmail.com> Signed-off-by: HyukjinKwon <gurwls223@apache.org>
What changes were proposed in this pull request?
Rename
spark.sql.legacy.addDirectory.recursive.enabledtospark.sql.legacy.addSingleFileInAddFileWhy are the changes needed?
To follow the naming convention
Does this PR introduce any user-facing change?
No
How was this patch tested?
Existing UTs.