Presto (trino 359) show error Catalog must be specified #2397
Replies: 4 comments
-
Format looks good https://docs.gethue.com/administrator/configuration/connectors/#trino Maybe there is a problem with the hyphen '-'. What do you see for Does it work if you use the SqlAlchemy code directly, e.g. https://github.com/dropbox/PyHive#sqlalchemy |
Beta Was this translation helpful? Give feedback.
-
Thanks @romainr! Your comment helped me figure this out. The hyphen is not the issue since I tried other catalogs that do not have any hyphen. I even got the same error when I used the SqlAlchemy code directly. This open issue on PyHive led me to this page in Trino's documentation which states that Trino server does not work with older clients and to force older clients to work we have to include the following config property.
Adding this configuration property to my Trino server solved this issue. Maybe we should have this in the documentation till the driver for Trino is upgraded. |
Beta Was this translation helpful? Give feedback.
-
Good to know & glad it works! Would definitely be a good thing to add a note to the docs. Also maybe adding https://github.com/dungdm93/sqlalchemy-trino for 'trino://' prefix would be clean as it seems like there is no plan to have PyHive work with the latest Trino as of today. Would you like to add a quick note to the Hue docs about this? https://github.com/cloudera/hue/blob/master/docs/docs-site/content/administrator/configuration/connectors/_index.md |
Beta Was this translation helpful? Give feedback.
-
Sure! I will make a PR for the docs. Yeah we should be using the dialect specific to trino. Maybe I will pick that up over the weekend. |
Beta Was this translation helpful? Give feedback.
-
Is the issue already present in https://github.com/cloudera/hue/issues or discussed in the forum https://discourse.gethue.com?
Describe the bug: When trying to connect to trino 359 I get the following error
However I have mentioned catalog in the configuration. I even tried mentioning both catalog and schema with no luck. My configuration is
Steps to reproduce it? Host hue 4.10.0 via helm and try to connect to trino 359.
Hue version or source? 4.10.1
Beta Was this translation helpful? Give feedback.
All reactions