-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-27349][SQL] Dealing with TimeVars removed in Hive 2.x #24277
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
Conversation
|
|
||
| // The following configurations were removed by HIVE-12164(Hive 2.0) | ||
| val removedTimeVars = Seq( | ||
| ("hive.stats.jdbc.timeout", "30s") -> TimeUnit.SECONDS, |
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.
|
Test build #104227 has finished for PR 24277 at commit
|
|
Test build #104226 has finished for PR 24277 at commit
|
attilapiros
left a comment
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.
What about extending a test with two more asserts checking the default values in case of an empty configuration?
Otherwise LGTM.
(Thanks for referencing the default values from Hive.)
|
Test build #104250 has finished for PR 24277 at commit
|
gatorsmile
left a comment
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.
LGTM
| } | ||
|
|
||
| // The following configurations were removed by HIVE-12164(Hive 2.0) | ||
| val removedTimeVars = Seq( |
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.
-> hardcodingTimeVars
| assert(HiveUtils.formatTimeVarsForHiveClient(defaultConf)("hive.stats.jdbc.timeout") === "30") | ||
| assert(HiveUtils.formatTimeVarsForHiveClient(defaultConf)("hive.stats.retries.wait") === "3000") | ||
|
|
||
| def testFormatTimeVarsForHiveClient(key: String, value: String, expected: Long): Unit = { |
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.
Move this out of the test case.
|
Test build #104262 has finished for PR 24277 at commit
|
|
retest this please |
|
Test build #104261 has finished for PR 24277 at commit
|
|
Test build #104263 has finished for PR 24277 at commit
|
|
retest this please |
|
Test build #104267 has finished for PR 24277 at commit
|
|
Thanks! Merged to master. |
What changes were proposed in this pull request?
hive.stats.jdbc.timeoutandhive.stats.retries.waitwere removed by HIVE-12164.This pr to deal with this change.
How was this patch tested?
unit tests