Skip to content

Commit

Permalink
refactor: remove unneeded method
Browse files Browse the repository at this point in the history
  • Loading branch information
inancdokurel committed Dec 7, 2022
1 parent 4420dc4 commit fa90711
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions metadata-ingestion/src/datahub/ingestion/source/sql/vertica.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.
Expand All @@ -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):
Expand Down

0 comments on commit fa90711

Please sign in to comment.