You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues-all@impala.apache.org by "Csaba Ringhofer (Jira)" <ji...@apache.org> on 2020/11/18 17:25:00 UTC

[jira] [Created] (IMPALA-10341) Casting NaN to VARCHAR does not enforce max length

Csaba Ringhofer created IMPALA-10341:
----------------------------------------

             Summary: Casting NaN to VARCHAR does not enforce max length 
                 Key: IMPALA-10341
                 URL: https://issues.apache.org/jira/browse/IMPALA-10341
             Project: IMPALA
          Issue Type: Bug
          Components: Backend
            Reporter: Csaba Ringhofer


select cast(0/0 as varchar(1))
release: returns "nan", which shouldn't be possible with varchar(1)
debug: hits a dcheck and crashes

I realized that this is not handled well during the review of https://gerrit.cloudera.org/#/c/16719/
Hopefully the same patch will fix this issue.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-all-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org