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

Does Trino to Spark only support conversion syntax differences? Does it not support conversion of function differences? #413

Open
HelloZZF opened this issue May 24, 2023 · 2 comments

Comments

@HelloZZF
Copy link

HelloZZF commented May 24, 2023

I tried to convert these two functions, but both resulted in an error message "No match found for function".
select regexp_like('a','\d')
select date_diff('month',cast('2022-05-23' as date),cast('2022-06-23' as date))
733A80B6-9BE2-4829-8747-5B6A6C557A9F

When I try to convert SQL statements with syntax differences, Coral can successfully perform the conversion, for example:
SELECT * FROM mydb.mytable AS a CROSS JOIN UNNEST(split(a.id, ',')) AS t0 (b)

May I ask if the conversion of Trino to Spark function differences is not currently supported?
I see validator. validate (query) in the code
It is verified using the rules of hive, and the unique function in trino will report an error at this step

@wmoustafa
Copy link
Contributor

Yes, Trino to Coral is not fully supported yet and it is work in progress.

@HelloZZF
Copy link
Author

Got it,Thank you for your reply.

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

No branches or pull requests

2 participants