You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2022/03/28 19:08:16 UTC

[GitHub] [superset] aaronfeng opened a new issue #19400: Presto template processor functions are not available in Trino

aaronfeng opened a new issue #19400:
URL: https://github.com/apache/superset/issues/19400


   Hi,
   
   We are in the process of migrating from `Presto` to `Trino` and noticed template processor functions don't work with `Trino`.  We have a lot of datasets using ` first_latest_partition` function.
   
   #### How to reproduce the bug
   
   Below is working for `presto` driver, however, it doesn't work for Trino.
   
   ```
   SELECT *
   FROM foo 
   WHERE ds='{{ presto.first_latest_partition('foo') }}'
   ```
   ### Expected results
   
   Template processor function should also work for Trino.
   
   ### Actual results
   
   When using Trino driver, an error is thrown because there are not template processor functions for Trino.
   
   https://github.com/apache/superset/blob/master/superset/jinja_context.py#L553
   
   #### Screenshots
   
   ### Environment
   
   - superset version: `1.3.0`
   
   I looked at master code, it seems like this will also be an issue for `1.4.0`
   
   ### Checklist
   
   Make sure to follow these steps before submitting your issue - thank you!
   
   - [ ] 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.


-- 
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: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org