JRobTS commented on issue #11603:
URL: https://github.com/apache/druid/issues/11603#issuecomment-961180338


   I also see inconsistent results with CAST but without the subquery. This 
happens on the most recently ingested data (e.g. data ingested in the past 10 
minutes)
   
   ```
   SELECT COALESCE(ReturnDate, 0)
           FROM "datasource"
           WHERE __time >= '2021-10-27T14:00:00+00:00'
           AND __time < '2021-10-27T15:00:00+00:00' 
           AND EventName = 'Completed' 
   ```
   --> 18640
   
   ```
   SELECT CAST(ReturnDate AS INTEGER)
           FROM "datasource"
           WHERE __time >= '2021-10-27T14:00:00+00:00'
           AND __time < '2021-10-27T15:00:00+00:00' 
           AND EventName = 'Completed' 
   ```
   --> 13375
   
   


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