jcsherin commented on PR #13201:
URL: https://github.com/apache/datafusion/pull/13201#issuecomment-2453934188

   > External error: query failed: DataFusion error: Arrow error: Invalid 
argument error: It is not possible to concatenate arrays of different data 
types.
   
   In the built-in (older) version the output field is defined like:
   ```rust
       fn field(&self) -> Result<Field> {
           let nullable = true;
           Ok(Field::new(&self.name, self.data_type.clone(), nullable))
       }
   ```
   
   In the current code the implementation of field the data type of the field 
is hard-coded as `DataType::UInt64`:
   ```rust
       fn field(&self, field_args: WindowUDFFieldArgs) -> Result<Field> {
           let nullable = true;
   
           Ok(Field::new(field_args.name(), DataType::UInt64, nullable))
       }
   ```
   
   To fix this use `field_args` to get the data type of the input expression 
rather than hard-coding `DataType::UInt64`.


-- 
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-unsubscr...@datafusion.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to