Skip to content
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

[VL] Support casting integral type to timestamp type #8593

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

PHILO-HE
Copy link
Contributor

What changes were proposed in this pull request?

There is a velox pr merged: facebookincubator/velox#11089. This pr fixes the fallback even though velox has supported such cast.

How was this patch tested?

Existing Spark tests.

@github-actions github-actions bot added the VELOX label Jan 22, 2025
@PHILO-HE PHILO-HE changed the title [VL] Support casting Integral type to timestamp type [VL] Support casting integral type to timestamp type Jan 22, 2025
Copy link

Thanks for opening a pull request!

Could you open an issue for this pull request on Github Issues?

https://github.com/apache/incubator-gluten/issues

Then could you also rename commit message and pull request title in the following format?

[GLUTEN-${ISSUES_ID}][COMPONENT]feat/fix: ${detailed message}

See also:

}
// Only support cast from date or integral type to timestamp.
if (toType->kind() == TypeKind::TIMESTAMP)
if (!input->type()->isDate()) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can still use one if here, same as the original one if (toType->kind() == TypeKind::TIMESTAMP && !input->type()->isDate())

@github-actions github-actions bot added the CORE works for Gluten Core label Jan 23, 2025
Copy link

Run Gluten Clickhouse CI on x86

Copy link

Run Gluten Clickhouse CI on x86

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CORE works for Gluten Core VELOX
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants