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

Redshift name type #3123

Closed
hsheth2 opened this issue Mar 11, 2024 · 0 comments · Fixed by #3128
Closed

Redshift name type #3123

hsheth2 opened this issue Mar 11, 2024 · 0 comments · Fixed by #3128
Assignees

Comments

@hsheth2
Copy link
Contributor

hsheth2 commented Mar 11, 2024

Reopening #3107

I filed the bug against the postgres dialect, but was actually using Redshift myself. It seems this bug only appears for Redshift, despite the redshift dialect being based on postgres.

from sqlglot import parse_one

parse_one("""
SELECT pgc.relname::CHARACTER varying AS textin
  FROM pg_class pgc
 WHERE pgc.relname <> 'my_table'::name
 """, read="redshift")
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.

2 participants