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

Feature: add support of Trino (AWS Athena) dialect #272

Closed
roykoand opened this issue Jul 26, 2024 · 7 comments
Closed

Feature: add support of Trino (AWS Athena) dialect #272

roykoand opened this issue Jul 26, 2024 · 7 comments

Comments

@roykoand
Copy link

No description provided.

@xnuinside
Copy link
Owner

@roykoand , hi! thanks for opening an issue, I'm on conference this week. I can take a look on dialect next week. As I understand in first priority samples of dialect, that are provided here - datacontract/datacontract-cli#332 ?

@roykoand
Copy link
Author

@xnuinside Yes, this is correct. Very much appreciated! Thanks in advance!

@xnuinside
Copy link
Owner

@roykoand Can I ask, why you choose for your project simple-ddl-parser, but not sqlglot for example? Historically was the reasons, why I created this library, but now as I see, sqlglot already supports different dialects very well & better then my parser. Is it because of output format? I’m trying to understand why peoples still use & staring use my parser. I’m thinking about to add sqlglot as extension dependency in my parser like to use it as parser engine, but sabe same output structure

@roykoand
Copy link
Author

@xnuinside this is a great question! I am not an original developer who introduced this dependency, I am not more than a person who just did a feature request.
I think you're correct in your assumption, nice and easy to work with output format is a key for why folks prefer to use simple-ddl-parser. @jochenchrist maybe you can add more details on your motivation of using simple-ddl-parser in datacontract-cli, thanks in advance!

@jochenchrist
Copy link

Author of datacontract-cli here.
Well, simple-ddl-parser did exactly the job to parse CREATE TABLE statements to import them to a data contract.

We discussed using sqlglot for exporting to different formats, but we would have the need to override the data type if a server-specific data type is defined in a data contract. Seems a little complicated.

datacontract/datacontract-cli#160

@xnuinside
Copy link
Owner

@roykoand @jochenchrist added output for Athena in 1.6.0 and added your case to test cases - https://github.com/xnuinside/simple-ddl-parser/blob/main/tests/dialects/test_athena.py#L6. Please, use: https://pypi.org/project/simple-ddl-parser/1.6.0/.

@jochenchrist thanks for answer :)

I will close this issue - if needed anything else, feel free to open new one.

@roykoand
Copy link
Author

@xnuinside Thank you so much for adding Athena (Trino) dialect! Excited to try it out!

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

3 participants