Fixing the macros

This commit is contained in:
Maxime Beauchemin committed 2014-10-24 22:05:56 +00:00
1 parent 04e2687e34
commit 032bfcd231
2 files changed
+11

No files matched your search

+3
View File
@@ -0,0 +1,3 @@
from random import random
from datetime import datetime
import time
+8
View File
@@ -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)