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

[CALCITE-4600] Support Date/Time/Timestamp slot object's content for date/time/timestamp array accessors #143

Closed
wants to merge 6 commits into from

Conversation

snuyanzin
Copy link
Contributor

@snuyanzin snuyanzin commented May 10, 2021

In case of arrays of date, time and timestamp the content of slot object could be not only Number if the value is of not JAVA_SQL_* type ... At the same time avatica tries always to cast it to number and in case of

select array[current_date];
select array[current_timestamp];
select array[current_time];

it leads to ClassCastException .
The PR is aimed to fix such behavior by checking this type before

@snuyanzin snuyanzin changed the title [CALCITE-4600] Keep slot object's content as number for date/time/tim… [CALCITE-4600] Support Date/Time/Timestamp slot object's content for date/time/timestamp array accessors May 10, 2021
@julianhyde julianhyde closed this in d88f91a Oct 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant