|
@@ -31,6 +31,7 @@ def check_data(project, table, partition) -> int:
|
|
)
|
|
)
|
|
try:
|
|
try:
|
|
t = odps.get_table(name=table)
|
|
t = odps.get_table(name=table)
|
|
|
|
+ log_.info(f"检查分区是否存在-【 dt={partition} 】")
|
|
check_res = t.exist_partition(partition_spec=f'dt={partition}')
|
|
check_res = t.exist_partition(partition_spec=f'dt={partition}')
|
|
if check_res:
|
|
if check_res:
|
|
sql = f'select * from {project}.{table} where dt = {partition}'
|
|
sql = f'select * from {project}.{table} where dt = {partition}'
|