From fa9071132699cf98b7ff90549e22c953f6c4a988 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=B0nan=C3=A7=20Dokurel?= Date: Wed, 7 Dec 2022 18:43:34 +0300 Subject: [PATCH] refactor: remove unneeded method --- .../src/datahub/ingestion/source/sql/vertica.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/metadata-ingestion/src/datahub/ingestion/source/sql/vertica.py b/metadata-ingestion/src/datahub/ingestion/source/sql/vertica.py index 43247e6ca597d..11b771cbe0209 100644 --- a/metadata-ingestion/src/datahub/ingestion/source/sql/vertica.py +++ b/metadata-ingestion/src/datahub/ingestion/source/sql/vertica.py @@ -31,7 +31,7 @@ class UUID(String): __visit_name__ = "UUID" -class TIMESTAMPWP(TIMESTAMP): +class TIMESTAMP_WITH_PRECISION(TIMESTAMP): """The SQL TIMESTAMP With Precision type. Since Vertica supports precision values for timestamp this allows ingestion @@ -44,7 +44,7 @@ class TIMESTAMPWP(TIMESTAMP): __visit_name__ = "TIMESTAMP" def __init__(self, timezone=False, precision=None): - """Construct a new :class:`_types.TIMESTAMPWP`. + """Construct a new :class:`_types.TIMESTAMP_WITH_PRECISION`. :param timezone: boolean. Indicates that the TIMESTAMP type should enable timezone support, if available on the target database. @@ -59,13 +59,9 @@ def __init__(self, timezone=False, precision=None): self.precision = precision -def TIMESTAMP_WITH_PRECISION(*args, **kwargs): - return TIMESTAMPWP(*args, **kwargs) - - def TIMESTAMP_WITH_TIMEZONE(*args, **kwargs): kwargs["timezone"] = True - return TIMESTAMPWP(*args, **kwargs) + return TIMESTAMP_WITH_PRECISION(*args, **kwargs) def TIME_WITH_TIMEZONE(*args, **kwargs):