rmgpinto opened a new pull request #12861:
URL: https://github.com/apache/superset/pull/12861


   ### SUMMARY
   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.
   
   ### TEST PLAN
   Proposed solutions swaps those lines.
   
   ### ADDITIONAL INFORMATION
   <!--- Check any relevant boxes with "x" -->
   <!--- HINT: Include "Fixes #nnn" if you are fixing an existing issue -->
   - [x] Has associated issue: https://github.com/apache/superset/issues/12860
   - [ ] Changes UI
   - [ ] Requires DB Migration.
   - [ ] Confirm DB Migration upgrade and downgrade tested.
   - [ ] Introduces new feature or API
   - [ ] Removes existing feature or API
   


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