trino-gateway
trino-gateway copied to clipboard
Process Request for routing rules
Description
Extract information from the HttpServeletRequest into a class more convenient for usage in routing logic.
Additional context and related issues
Routing rules are authored in the MVEL language used by the jeasy rules engine. MVEL has limited functionality in comparison to standard Java, and cannot use libraries not included with the JDK. This PR passes an additional processedRequest
object to the rules engine with getters for the user, query type, and SQL details such as referenced tables and schemas.
Release notes
( ) This is not user-visible or is docs only, and no release notes are required. ( ) Release notes are required. Please propose a release note for me. ( x) Release notes are required, with the following suggested text:
* Process request to facilitate rule writing