You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "neilconway (via GitHub)" <gi...@apache.org> on 2026/02/09 00:44:47 UTC

[I] to_timestamp() fails when passed mix of scalar and array args [datafusion]

neilconway opened a new issue, #20223:
URL: https://github.com/apache/datafusion/issues/20223

   ### Describe the bug
   
   When to_timestamp() was invoked with a scalar Float64 and an array of strings, the previous coding neglected to broadcast the scalar to the array properly when producing the return value.
   
   ### To Reproduce
   
   ```
   CREATE TABLE t61(v2 STRING);
   INSERT INTO t61(v2) VALUES ('flX'), ('3');
   
   SELECT TO_TIMESTAMP(123.5, tt0.v2) FROM t61 AS tt0;
   ```
   
   Yields
   
   ```
   Internal error: UDF to_timestamp returned a different number of rows than expected. Expected: 2, Got: 1
   ```
   
   ### Expected behavior
   
   _No response_
   
   ### Additional context
   
   _No response_


-- 
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] to_timestamp() fails when passed mix of scalar and array args [datafusion]

Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb closed issue #20223: to_timestamp() fails when passed mix of scalar and array args
URL: https://github.com/apache/datafusion/issues/20223


-- 
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