-
Notifications
You must be signed in to change notification settings - Fork 365
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[trino][compute] Add compute support for Trino #3837
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I feel at some point in time, having an API endpoint (or few of them) in Hue for this could be beneficial. Maybe then we don't need to depend on CDW layer running the command at a set interval and service discovery can be more dynamic and on-demand? |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1909,7 +1909,7 @@ def _get_editor(self): | |
'optimizer': get_optimizer_mode(), | ||
'page': '/editor/?type=%(type)s' % interpreter, | ||
'is_sql': interpreter['is_sql'], | ||
'is_batchable': interpreter['dialect'] in ['hive', 'impala'] or interpreter['interface'] in ['oozie', 'sqlalchemy'], | ||
'is_batchable': interpreter['dialect'] in ['hive', 'impala', 'trino'] or interpreter['interface'] in ['oozie', 'sqlalchemy'], | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this required to enable batch queries for Trino? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If hive and impala are batch-able then why not trino? it seems to work fine on the frontend. Is there a reason not to do it? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Even I was curious if Trino supports batch-querying in Hue OOTB. Good that the frontend is looking good. @agl29 - Let's validate and test this out when implementing V2? |
||
'dialect': interpreter['dialect'], | ||
'dialect_properties': interpreter.get('dialect_properties'), | ||
}) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Is formatting correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pycharm likes it this way and ruff also doesn't complain so I didn't bother much. On a closer look, the L148 is actually part of the
if
started on L147, so an extra indent might be okay.