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

Added E6data support in the dialects.py #1

Open
wants to merge 6 commits into
base: e6-integration
Choose a base branch
from

Conversation

Adithyak-0926
Copy link

No description provided.

Signed-off-by: adithyakanamarlapudi <kanamarlapudi@e6x.io>
@@ -18,7 +18,16 @@
SQLite,
Trino,
)
from sqlglot.dialects.dialect import rename_func
from sqlglot.dialects.dialect import (

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add from sqlglot import generator

@Adithyak-0926
Copy link
Author

@shreyas2201 Added generator import and some more changes and pushed it in the commit 4563ade83422e1aa97ce6ed0de3996f332fdaf17

… binary on left. And also inheriting from SqlGlotCompiler rather than MYSQLcompiler.
__slots__ = ()

dialect = E6data
type_mapper = E6DataType

def visit_Equals(self, op, *, left, right):
return sge.EQ(this=left, expression=right)
Copy link

@shreyas2201 shreyas2201 Oct 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are directly using SQLGlotCompiler
you dont need this now

@Adithyak-0926
Copy link
Author

removed that part @shreyas2201

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 this pull request may close these issues.

2 participants