Trino uses X-Trino headers instead of X-Presto headers. Gateway uses X-Presto-User and X-Presto-Source to determine the user and source of query. Gateway would continue to work, however, these important metrics would not get recorded, for any query coming from a Trino client.
Check for either X-Trino-User or X-Presto-User is done on each query request. Similar check is done for X-Presto-Source and X-Trino-Source. Client libraries can specify X-Trino-Routing-Group instead of X-Presto-Routing-Group, for uniformity.
Trino uses
X-Trino
headers instead ofX-Presto
headers. Gateway usesX-Presto-User
andX-Presto-Source
to determine the user and source of query. Gateway would continue to work, however, these important metrics would not get recorded, for any query coming from a Trino client.Check for either
X-Trino-User
orX-Presto-User
is done on each query request. Similar check is done forX-Presto-Source
andX-Trino-Source
. Client libraries can specifyX-Trino-Routing-Group
instead ofX-Presto-Routing-Group
, for uniformity.Fixes #134.