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

   ### Describe the bug
   
   I had a column timestamp that is UTF8
   
   ```
           {
               "name": "timestamp",
               "data_type": "Utf8",
               "nullable": true,
               "dict_id": 0,
               "dict_is_ordered": false,
               "metadata": {}
           }
   ```
   
   Previously if i ran a query like 
   
   ```
   SELECT * FROM server_logs WHERE timestamp IS NOT NULL ORDER BY timestamp 
DESC LIMIT 3
   ```
   
   datafusion would return with no errors, but after upgrading to 43 I get
   
   ```
    Failed to execute SQL query
   
   Caused by:
       Error during planning: Error during planning: Coercion from [Utf8, 
Utf8View] to the signature OneOf([Exact([Utf8, Timestamp(Nanosecond, None)]), 
Exact([Utf8View, Timestamp(Nanosecond, None)]), Exact([Utf8, 
Timestamp(Nanosecond, Some("+TZ"))]), Exact([Utf8View, Timestamp(Nanosecond, 
Some("+TZ"))]), Exact([Utf8, Timestamp(Millisecond, None)]), Exact([Utf8View, 
Timestamp(Millisecond, None)]), Exact([Utf8, Timestamp(Millisecond, 
Some("+TZ"))]), Exact([Utf8View, Timestamp(Millisecond, Some("+TZ"))]), 
Exact([Utf8, Timestamp(Microsecond, None)]), Exact([Utf8View, 
Timestamp(Microsecond, None)]), Exact([Utf8, Timestamp(Microsecond, 
Some("+TZ"))]), Exact([Utf8View, Timestamp(Microsecond, Some("+TZ"))]), 
Exact([Utf8, Timestamp(Second, None)]), Exact([Utf8View, Timestamp(Second, 
None)]), Exact([Utf8, Timestamp(Second, Some("+TZ"))]), Exact([Utf8View, 
Timestamp(Second, Some("+TZ"))]), Exact([Utf8, Date64]), Exact([Utf8View, 
Date64]), Exact([Utf8, Date32]), Exact([Utf8View, Date32]), Exact(
 [Utf8, Time32(Second)]), Exact([Utf8View, Time32(Second)]), Exact([Utf8, 
Time32(Millisecond)]), Exact([Utf8View, Time32(Millisecond)]), Exact([Utf8, 
Time64(Microsecond)]), Exact([Utf8View, Time64(Microsecond)]), Exact([Utf8, 
Time64(Nanosecond)]), Exact([Utf8View, Time64(Nanosecond)]), Exact([Utf8, 
Interval(YearMonth)]), Exact([Utf8View, Interval(YearMonth)]), Exact([Utf8, 
Interval(DayTime)]), Exact([Utf8View, Interval(DayTime)]), Exact([Utf8, 
Interval(MonthDayNano)]), Exact([Utf8View, Interval(MonthDayNano)]), 
Exact([Utf8, Duration(Second)]), Exact([Utf8View, Duration(Second)]), 
Exact([Utf8, Duration(Millisecond)]), Exact([Utf8View, Duration(Millisecond)]), 
Exact([Utf8, Duration(Microsecond)]), Exact([Utf8View, Duration(Microsecond)]), 
Exact([Utf8, Duration(Nanosecond)]), Exact([Utf8View, Duration(Nanosecond)])]) 
failed.
   ```
   
   ### To Reproduce
   
   Create a similar looking schema and run a query against it
   
   ### Expected behavior
   
   No errors
   
   ### 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: [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