-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
fix: Update TO_DATE, TO_TIMESTAMP scalar functions to support LargeUtf8, Utf8View #12929
Conversation
…ew. Benchmark updated as well
query P | ||
SELECT to_timestamp(t.ts, '%Y-%m-%d %H/%M/%S%#z', '%+', '%s', '%d-%m-%Y %H:%M:%S%#z') from ts_utf8_data as t |
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.
Where did it go to?
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.
hmm. Incorrect refactor ... I changed the sql a few times here to condense the tests and it looks like I may have inadvertently changed this.
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.
Actually, it's now part of the sql starting at line 2242
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.
format1_builder.append_value("%+"); | ||
format2_builder.append_value("%c"); | ||
format3_builder.append_value("%Y-%m-%d 00:00:00"); | ||
c.bench_function("to_timestamp_with_formats_utf8", |b| { |
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.
👍
I merged up from main and applied @findepi 's comment suggestion. Once the tests pass I think this one is good to go |
🚀 |
Which issue does this PR close?
Closes #12928
Rationale for this change
Update functions to support Utf8View and LargeUtf8
What changes are included in this PR?
Code, tests, benchmark
Are these changes tested?
Yes
Are there any user-facing changes?
No