Conversation
✅ Deploy Preview for meta-velox canceled.
|
e0f27e4 to
d52d8b4
Compare
18d80b8 to
3bbb9c2
Compare
|
@bikramSingh91 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
| } else { | ||
| castFromOperator_->castFrom(input, context, rows, toType, result); | ||
| } | ||
| } else if (fromType->isDate()) { |
There was a problem hiding this comment.
curious, does the casting to/from "Interval day time" work correctly?
There was a problem hiding this comment.
Right now "interval day time" works just like an integer. In general, I don't think "interval day time" can be cast to any type. Though we should double check. The most type-safe behavior would be to error out in CastExpr if type is interval day time.
| (*castResult).clearNulls(rows); | ||
| auto* resultFlatVector = castResult->as<FlatVector<int32_t>>(); | ||
| switch (fromType->kind()) { | ||
| case TypeKind::VARCHAR: { |
There was a problem hiding this comment.
do we need to support VARBINARY too?
cc: @kagamiori
There was a problem hiding this comment.
This wasn't supported in the past. This PR is just for refactoring. We can create an issue and add support subsequently.
26b76c9 to
38c852d
Compare
|
@bikramSingh91 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
|
Thanks @bikramSingh91 for importing these changes. There is a FB Linter error. Is there anything I can help with ? |
Thanks for checking. I fixed the internal lint errors, but looks like this is being used in prestissimo and some other places internally. So I'll have to spend some time fixing those and ensuring nothing breaks before moving ahead with this. |
Velox Date is changed to a LogicalType instead of a first-class TypeKind. See facebookincubator/velox#5015 Fix usages of the TypeKind::DATE in Prestissimo code inline with the new implementation.
Yes, Prestissimo changes are needed for advancing Velox version. I had prestodb/presto#19935 in mind. Please let me know if you need any help. |
38c852d to
2eca707
Compare
|
@bikramSingh91 , @Yuhta : Rebased this code since there were multiple conflicts reported. Please let me know if you need anything else from me. |
|
@bikramSingh91 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Summary: Pull Request resolved: facebookincubator/velox#5015 Reviewed By: Yuhta Differential Revision: D46781864 Pulled By: bikramSingh91 fbshipit-source-id: cd8ef05ede44131f361a759025f14fde431addba
|
@bikramSingh91 merged this pull request in e480f5c. |
|
Conbench analyzed the 1 benchmark run on commit There were no benchmark performance regressions. 🎉 The full Conbench report has more details. |
Summary: Pull Request resolved: facebookincubator/velox#5015 Reviewed By: Yuhta Differential Revision: D46781864 Pulled By: bikramSingh91 fbshipit-source-id: cd8ef05ede44131f361a759025f14fde431addba
|
Thanks @bikramSingh91 for merging this. Appreciate it. |
Summary: Pull Request resolved: facebookincubator/velox#5015 Reviewed By: Yuhta Differential Revision: D46781864 Pulled By: bikramSingh91 fbshipit-source-id: cd8ef05ede44131f361a759025f14fde431addba
No description provided.