rmgpinto opened a new issue #12860:
URL: https://github.com/apache/superset/issues/12860


   Presto has incorrect order of column type mappings.
   `timestamp` is overriden with `time` due to these lines:
   
   ```
   (re.compile(r"^date.*", re.IGNORECASE), types.DATE()),
   (re.compile(r"^time.*", re.IGNORECASE), types.Time()),
   ```
   
   causing incorrect query statement to be passed from superset to presto.
   
   ### Expected results
   
   Query statements to have correct column type/cast.
   
   ### Actual results
   
   The query is incorrect.
   
   ### 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.
   - [x] I have reproduced the issue with at least the latest released version 
of superset.
   - [x] I have checked the issue tracker for the same issue and I haven't 
found one similar.
   
   


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

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