Comments (2)
Hey @kosta-foundational,
Thanks for reporting this issue. I did some digging and decided that it's out of scope for SQLGlot now as differentiating between
CASE WHEN
and your case hides a lot of ambiguity across dialects.The best practice in overcoming this issue is to quote the reserved keywords in order for SQLGlot to pick them up as identifiers instead of attempting to parse them as SQL constructs.
@VaggelisD , thank you for the fast response and for the honest communication of your considerations.
from sqlglot.
Hey @kosta-foundational,
Thanks for reporting this issue. I did some digging and decided that it's out of scope for SQLGlot now as differentiating between CASE WHEN
and your case hides a lot of ambiguity across dialects.
The best practice in overcoming this issue is to quote the reserved keywords in order for SQLGlot to pick them up as identifiers instead of attempting to parse them as SQL constructs.
from sqlglot.
Related Issues (20)
- Dialect: trino(presto), apply_index_offset (in the parse_one function) get wrong result HOT 2
- Transpiling timestampadd from Spark to Presto returns BigQuery function HOT 3
- ClickHouse tuple field named `select` fails to parse without quotes
- Transpile functions to DuckDB using "CREATE MACRO" HOT 1
- Please add the DB2 dialect HOT 1
- tSQL If condition ParseError HOT 1
- Improve pretty-printing for `CASE WHEN .. THEN ..` expressions HOT 1
- Prefix comments with `--` when pretty-printing whole-line comments HOT 1
- DuckDB base text types incorrect HOT 7
- Support ALTER VIEW in expression HOT 3
- Issue parsing `gen_random_uuid()` in postgres script.
- Support parsing of comma separated alter table clauses (snowflake) HOT 1
- Incorrect type cast in conversion from Spark to Presto in timestampad function HOT 2
- NULLS FIRST added to ORDER BY with oracle dialect. At least it should be NULLS LAST when sort direction is not provided. HOT 1
- Parsing falls back to Command when using BEGIN in BigQuery multi-statement HOT 1
- SAS dialect HOT 1
- duckdb binder error after json_extract_string is converted to ->> HOT 2
- `CREATE INDEX CONCURRENTLY` not parsed by postgres dialect
- dialect: postgres, `CREATE AGGREGATE` and `CREATE EXTENSION` treated as invalid syntax, unsure if expected or bug. HOT 7
- INSERT incorrectly roundtripped in mysql dialect.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sqlglot.