forked from amundsen-io/amundsendatabuilder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hive_watermark.py
30 lines (27 loc) · 1.18 KB
/
hive_watermark.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
from databuilder.models.watermark import Watermark
import warnings
warnings.warn("HiveWatermark class is deprecated. Use Watermark instead",
DeprecationWarning, stacklevel=2)
class HiveWatermark(Watermark):
# type: (...) -> None
"""
Hive table watermark result model.
Each instance represents one row of hive table watermark result.
"""
def __init__(self,
create_time, # type: str
schema, # type: str
table_name, # type: str
part_name, # type: str
part_type='high_watermark', # type: str
cluster='gold', # type: str
):
# type: (...) -> None
super(HiveWatermark, self).__init__(create_time=create_time,
database='hive',
schema=schema,
table_name=table_name,
part_name=part_name,
part_type=part_type,
cluster=cluster,
)