dungdm93/sqlalchemy-trino

Support connection parameter "sessionUser"

shawnzhu opened this issue · 1 comments

Trino JDBC driver supports connection parameter sessionUser (to support user impersonation) since release 352. see trinodb/trino#6549

Since Apache superset supports the impersonation for Trino, but it looks like the implementation (apache/superset#14843) needs adjustment.

Expected change

Supports parameter sessionUser from query string, so that it can be send to Trino via the header X-Trino-User.

Notice that this differs from the user from SQLAlchemy connection string which acts as principal (default value for X-Trino-User) for authentication purpose.

Hello @shawnzhu
Let's discuss in the PR