Z0ltrix opened a new issue #18869:
URL: https://github.com/apache/superset/issues/18869


   we have a problem with our superset -> drill connection with time range 
filters.
   
   When we filter a dashboard by time range (last week, month, etc.) i get an 
   
   ```
   SYSTEM ERROR: ClassCastException: 
org.apache.drill.exec.expr.holders.NullableTimeStampHolder cannot be cast to 
org.apache.drill.exec.expr.holders.TimeStampHolder
   ```
   
   from drill.
   
   
   
   
   #### How to reproduce the bug
   
   1. Create a Dataset based on Drill
   2. Create a Filter Box
   3. Create a Dashboard
   4. Make sure everything works 
   5. Aktivate a Time Range Filter on the Filter Box
   6. Everything fails with the error in Drill
   
   ### Expected results
   
   Superset should send the following filter:
   ```
   WHERE `startTime` >= TIMESTAMP '2022-02-14 00:00:00.000000'
     AND `startTime` < TIMESTAMP '2022-02-21 00:00:00.000000'
   ORDER BY `startTime` DESC
   ```
   ### Actual results
   
   Superset sends the following to drill:
   ```
   WHERE `startTime` >= '2022-02-14 00:00:00.000000'
     AND `startTime` < '2022-02-21 00:00:00.000000'
   ORDER BY `startTime` DESC
   ```
   
   #### Screenshots
   
   
![image](https://user-images.githubusercontent.com/14264280/155306427-8cd7c818-1009-41b7-92fc-c087ee9d0c9d.png)
   
![image](https://user-images.githubusercontent.com/14264280/155306488-1ca61a5f-95c6-45e8-9bbf-288d8fc92ae8.png)
   
   
   ### Environment
   
   (please complete the following information):
   
   - browser type and version: Chrome Version 98.0.4758.102
   - superset version: 1.3.0
   - python version: 3.8.0
   
   ### Checklist
   
   Make sure to follow these steps before submitting your issue - thank you!
   
   - [x] I have checked the superset logs for python stacktraces and included 
it here as text if there are any.
   - [ ] I have reproduced the issue with at least the latest released version 
of superset.
   - [ ] I have checked the issue tracker for the same issue and I haven't 
found one similar.
   - [x] I have discussed the question on dev mailing list
   
   ### Additional context
   
   Add any other context about the problem here.
   


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