-
Notifications
You must be signed in to change notification settings - Fork 467
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
[GLUTEN-8639][VL] Support casting from double/float to timestamp #8640
base: main
Are you sure you want to change the base?
Conversation
7ab5b33
to
97ec93e
Compare
Run Gluten ClickHouse CI on ARM |
97ec93e
to
d237252
Compare
Run Gluten ClickHouse CI on ARM |
Run Gluten ClickHouse CI on ARM |
1 similar comment
Run Gluten ClickHouse CI on ARM |
0d4449d
to
bb5671d
Compare
Run Gluten ClickHouse CI on ARM |
1 similar comment
Run Gluten ClickHouse CI on ARM |
c070564
to
90a63fc
Compare
Run Gluten ClickHouse CI on ARM |
Run Gluten ClickHouse CI on ARM |
// Only support cast from date to timestamp | ||
if (toType->kind() == TypeKind::TIMESTAMP && !input->type()->isDate()) { | ||
// Only support cast of certain types to timestamp (date and double) | ||
if (toType->kind() == TypeKind::TIMESTAMP && !input->type()->isDate() && input->type()->kind() != TypeKind::DOUBLE) { |
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.
This one facebookincubator/velox#12041 has been merged, please update to also support float, thanks!
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.
updated thanks
096d3bc
to
62eafc8
Compare
Run Gluten ClickHouse CI on ARM |
62eafc8
to
04c9b9f
Compare
Run Gluten ClickHouse CI on ARM |
04c9b9f
to
64af4ec
Compare
Run Gluten ClickHouse CI on ARM |
Please update the PR description |
done |
Please refer to this one facebookincubator/velox#12041 in the PR description, but it is not merged in oap-project/velox, please wait for #8867 |
Got it, updated the ref, will wait for the Velox to update |
@@ -152,4 +153,33 @@ class GlutenCastSuite extends CastSuite with GlutenTestsTrait { | |||
|
|||
checkEvaluation(cast(Literal.create(null, IntegerType), ShortType), null) | |||
} | |||
|
|||
test("cast from double to timestamp format") { |
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.
If this test is not a variant of vanilla spark test, we prefer moving it to some common places, not bound to one Spark version. E.g., ScalarFunctoinsValidateSuite.scala
or one new dedicate test class under backends-velox.
Run Gluten ClickHouse CI on ARM |
aef40b1
to
e7fd3dd
Compare
Run Gluten ClickHouse CI on ARM |
e7fd3dd
to
c3aa1f7
Compare
Run Gluten ClickHouse CI on ARM |
1 similar comment
Run Gluten ClickHouse CI on ARM |
1fe01c4
to
c3aa1f7
Compare
Run Gluten ClickHouse CI on ARM |
1 similar comment
Run Gluten ClickHouse CI on ARM |
2b29adc
to
65d3939
Compare
Run Gluten ClickHouse CI on ARM |
65d3939
to
63b356d
Compare
Run Gluten ClickHouse CI on ARM |
63b356d
to
e299557
Compare
Run Gluten ClickHouse CI on ARM |
What changes were proposed in this pull request?
How was this patch tested?