You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@calcite.apache.org by "tanclary (via GitHub)" <gi...@apache.org> on 2024/03/11 18:12:30 UTC

[PR] [b/328440720] Cast STRING to FLOAT64 before casting to INTEGER [calcite]

tanclary opened a new pull request, #3724:
URL: https://github.com/apache/calcite/pull/3724

   As the comment in dialect.tdd details, to avoid errors with decimals. we cast strings to FLOAT64 before casting them to INTEGERs. As a result of this, the whole part of the number is not always preserved (it casts to the nearest integer). We decided to do this instead of adding an additional block to the SQL that preserves the whole part for simplicity's sake


-- 
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: commits-unsubscribe@calcite.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [b/328440720] Cast STRING to FLOAT64 before casting to INTEGER [calcite]

Posted by "tanclary (via GitHub)" <gi...@apache.org>.
tanclary closed pull request #3724: [b/328440720] Cast STRING to FLOAT64 before casting to INTEGER
URL: https://github.com/apache/calcite/pull/3724


-- 
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: commits-unsubscribe@calcite.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org