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

SQL translation? #5902

Closed
2 of 3 tasks
PenelopeFudd opened this issue May 22, 2024 · 2 comments
Closed
2 of 3 tasks

SQL translation? #5902

PenelopeFudd opened this issue May 22, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@PenelopeFudd
Copy link

Search before asking

  • I searched the issues and found no similar issues.

Description

Since SqlFluff is generating an abstract syntax tree from the input, could it be used to translate from one dialect to another?

Use case

I'd like to be able to convert SQL syntax from one dialect (e.g. SQLite) to another (e.g. Postgres).

Some features may not be available in the target dialect, and that's ok, as long as it's clear when a statement couldn't be translated.

Partial translations would be ok too, again, making it clear that statement should not be used as-is.

Dialect

all

Are you willing to work on and submit a PR to address the issue?

  • Yes I am willing to submit a PR!

Code of Conduct

@PenelopeFudd PenelopeFudd added the enhancement New feature or request label May 22, 2024
@greg-finley
Copy link
Contributor

I think we probably wouldn’t attempt it given that is hard to add and covered well by sqlglot already. Check it out: https://github.com/tobymao/sqlglot?tab=readme-ov-file#formatting-and-transpiling

@greg-finley greg-finley closed this as not planned Won't fix, can't repro, duplicate, stale May 30, 2024
@PenelopeFudd
Copy link
Author

'kay, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants