HiveEngineSpec.get_view_names
returns empty list even if corresponding function is available for hive dialect
#8010
Labels
inactive
Inactive for >= 30 days
Is your feature request related to a problem? Please describe.
The
HiveEngineSpec.get_view_names
returns empty list becauseHiveEngineSpec
inherits fromPrestoEngineSpec
whereget_view_names
is set to return empty list. This is because https://github.com/dropbox/PyHive/blob/v0.6.1/pyhive/sqlalchemy_presto.py doesn't have aget_view_names
function. But this function is available for https://github.com/dropbox/PyHive/blob/v0.6.1/pyhive/sqlalchemy_hive.py so it should make sense to call it. This prevents showing the list of the views in the SQL Editor tab.Describe the solution you'd like
Add the following method to
HiveEngineSpec
:Describe alternatives you've considered
None.
Additional context
I was able to actually test it in a project that is based on superset. This project uses a fork of PyHive in order to support SparkSQL, and has an engine spec for SparkSQL (open PR at the time of writing) which is simply defined as follows:
The text was updated successfully, but these errors were encountered: