File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3535from urllib .parse import urlparse
3636
3737from hive_metastore .v3 .ThriftHiveMetastore import Client
38- from hive_metastore .v4 .ttypes import (
38+ from hive_metastore .v3 .ttypes import (
3939 AlreadyExistsException ,
4040 CheckLockRequest ,
4141 EnvironmentContext ,
5555 StorageDescriptor ,
5656 UnlockRequest ,
5757)
58- from hive_metastore .v4 .ttypes import (
58+ from hive_metastore .v3 .ttypes import (
5959 Database as HiveDatabase ,
6060)
61- from hive_metastore .v4 .ttypes import (
61+ from hive_metastore .v3 .ttypes import (
6262 Table as HiveTable ,
6363)
6464from tenacity import retry , retry_if_exception_type , stop_after_attempt , wait_exponential
153153
154154logger = logging .getLogger (__name__ )
155155
156+ v3type = importlib .import_module ("hive_metastore.v3.ttypes" )
157+ v4type = importlib .import_module ("hive_metastore.v4.ttypes" )
158+
156159
157160class _HiveClient :
158161 """Helper class to nicely open and close the transport."""
You can’t perform that action at this time.
0 commit comments