ashwintumma23 commented on issue #17116:
URL: https://github.com/apache/druid/issues/17116#issuecomment-2675654007

   @Hi @carltal , 
   Do you have any sample data for debugging this issue? I tried to generate 
some sample 
[data](https://gist.github.com/ashwintumma23/5cde2cfb39900c61ee4238a07f4ec9ba), 
and ran a few queries on Druid `29.0.1` and I see that the queries return 
correct values in all cases. Screenshots below: 
   
   - `"merchant_id" = 'M101' AND "__time" >= '2023-01-01' AND "__time" < 
'2023-12-01'` (All records)
   
   
![Image](https://github.com/user-attachments/assets/49559182-3f41-4511-8d8a-e4821cf3acf5)
   
   - `"merchant_id" = 'M101' AND "__time" >= '2023-01-01' AND "__time" < 
'2023-12-01' AND "payment_card_type" is not null AND "payment_card_type" <> 
'AMEX'`
   
   
![Image](https://github.com/user-attachments/assets/0eb0bfbf-8c68-49ea-a9dd-4248417de1dc)
   
   - `merchant_id" = 'M101' AND "__time" >= '2023-01-01' AND "__time" < 
'2023-12-01' AND "payment_card_type" != null AND "payment_card_type" <> 'AMEX'`
   
   
![Image](https://github.com/user-attachments/assets/2026d295-6d1d-4981-a3e8-4b04b31804c8)
   
   - `"merchant_id" = 'M101' AND "__time" >= '2023-01-01' AND "__time" < 
'2023-12-01' AND ("payment_card_type" != null OR "payment_card_type" <> 'AMEX')`
   
   
![Image](https://github.com/user-attachments/assets/0334d156-1103-4374-80da-d9fbcd80a548)
   
   - `"merchant_id" = 'M101' AND "__time" >= '2023-01-01' AND "__time" < 
'2023-12-01' AND "payment_card_type" is not null`
   
   
![Image](https://github.com/user-attachments/assets/160f2788-79c9-4371-b020-cfb261364c0e)
   
    


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