You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "lovasoa (via GitHub)" <gi...@apache.org> on 2024/11/10 06:57:26 UTC
[I] parse true and false as column names, not booleans in Microsoft SQL server [datafusion-sqlparser-rs]
lovasoa opened a new issue, #1508:
URL: https://github.com/apache/datafusion-sqlparser-rs/issues/1508
mssql does not have a boolean type: true and false are not special keywords and they are valid column names. However, sqlparser always parses them as boolean literals, regardless of the dialect.
In the mssql dialect, in
```sql
select true from table;
```
true should be parsed as an ObjectName, not a Value.
Parsing true and false as booleans in mssql causes the following confusing behavior is SQLPage: https://github.com/sqlpage/SQLPage/discussions/679
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [I] parse true and false as column names, not booleans in Microsoft SQL server [datafusion-sqlparser-rs]
Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb closed issue #1508: parse true and false as column names, not booleans in Microsoft SQL server
URL: https://github.com/apache/datafusion-sqlparser-rs/issues/1508
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org