yyy1000 commented on issue #10270:
URL: https://github.com/apache/datafusion/issues/10270#issuecomment-2081599976

   After a initial try, there is an issue shown below:
   
   > statement ok
   > CREATE TABLE test(
   >   int_field  INT,
   >   bool_field BOOLEAN,
   >   text_field TEXT,
   >   more_ints  INT
   > ) as VALUES
   >   (1,    true,  'abc',  2),
   >   (2,    false, 'def',  2),
   >   (3,    NULL,  'ghij', 3),
   >   (NULL, NULL,   NULL,  4),
   >   (4,    false, 'zxc',  5),
   >   (NULL, true,   NULL,  6)
   > ;
   > 
   > 
   > query I rowsort
   > SELECT NULLIF(int_field, 2) FROM test;
   
   External error: query failed: DataFusion error: Error during planning: No 
function matches the given name and argument types 'nvl(Int32, Int64)'. You 
might need to add explicit type casts.
   
   I think it's because the first type is INT(32), however datafusion will 
treat the const 2 as int64.🤔
   I will also see whether there is a solution.
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to