-
Notifications
You must be signed in to change notification settings - Fork 566
[GLUTEN-10950][VL][FOLLOWUP] Fix missing time unit in hadoop-aws time configuration (pre-3.4 versions) #11329
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
…nnection.establish.timeout'
zml1206
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.
Could you also support the other time config mentioned in #10951 (comment)? Thanks.
backends-velox/src/main/scala/org/apache/gluten/backendsapi/velox/VeloxTransformerApi.scala
Outdated
Show resolved
Hide resolved
|
Can you add the two configs as well? |
@zml1206 @FelixYBW use map to store config key to its default time unit. |
backends-velox/src/main/scala/org/apache/gluten/backendsapi/velox/VeloxTransformerApi.scala
Outdated
Show resolved
Hide resolved
backends-velox/src/main/scala/org/apache/gluten/backendsapi/velox/VeloxTransformerApi.scala
Outdated
Show resolved
Hide resolved
backends-velox/src/main/scala/org/apache/gluten/backendsapi/velox/VeloxTransformerApi.scala
Outdated
Show resolved
Hide resolved
backends-velox/src/main/scala/org/apache/gluten/backendsapi/velox/VeloxTransformerApi.scala
Outdated
Show resolved
Hide resolved
…a.multipart.purge.age unit
zml1206
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, thanks, awaiting CI.
|
Please use |
| if (NumberUtils.isCreatable(s3sConnectionTimeout)) { | ||
| nativeConfMap.put("spark.hadoop.fs.s3a.connection.timeout", s"${s3sConnectionTimeout}ms") | ||
| // S3A configurations that require time units for Velox. | ||
| // Hadoop-aws versions before 3.3.6 do not include time units by default. |
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.
Why modify it? It should be before version 3.4. Suggestion:
Some configurations in Hadoop-aws versions before 3.4 do not include time units.
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.
my mistake.
This reverts commit 68f184e.
| s3aTimeConfigs.foreach { | ||
| case (configKey, defaultUnit) => | ||
| val configValue = nativeConfMap.get(configKey) | ||
| if (configValue != null && NumberUtils.isCreatable(configValue)) { |
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.
configValue != null is redundant, NumberUtils.isCreatable contains null checks.
What changes are proposed in this pull request?
FOLLOWUP Fix: #10950
How was this patch tested?
No need