mirror of
https://github.com/apache/airflow.git
synced 2026-11-04 07:12:48 +00:00
Fixing the macros
This commit is contained in:
1 parent
04e2687e34
commit
032bfcd231
2 files changed
+11
No files matched your search
@@ -0,0 +1,3 @@
|
||||
from random import random
|
||||
from datetime import datetime
|
||||
import time
|
||||
@@ -0,0 +1,8 @@
|
||||
from airflow import settings
|
||||
from airflow.hooks.hive_hook import HiveHook
|
||||
|
||||
def max_partition(
|
||||
table, schema="default", hive_dbid=settings.HIVE_DEFAULT_DBID):
|
||||
hh = HiveHook(hive_dbid=hive_dbid)
|
||||
return hh.max_partition(schema=schema, table=table)
|
||||
|
||||
Reference in new issue
Block a user