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

Trino's substr has different start index #433

Closed
jerryleooo opened this issue Jul 3, 2023 · 0 comments · Fixed by #434
Closed

Trino's substr has different start index #433

jerryleooo opened this issue Jul 3, 2023 · 0 comments · Fixed by #434

Comments

@jerryleooo
Copy link
Contributor

hive> create view view_test_substr as select substr('123', 0, 2) as a;
hive> select * from view_test_substr;
12


trino> select * from view_test_substr;
 a
---


trino >select substr('123', 1, 2) as a
a
----
12

Trino substr function expects 1 as the start index

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 a pull request may close this issue.

1 participant