shahar1 commented on code in PR #70334:
URL: https://github.com/apache/airflow/pull/70334#discussion_r3643848803
##########
providers/apache/hive/src/airflow/providers/apache/hive/sensors/named_hive_partition.py:
##########
@@ -95,6 +92,8 @@ def poke_partition(self, partition: str) -> Any:
return self.hook.check_for_named_partition(schema, table, partition)
def poke(self, context: Context) -> bool:
+ if isinstance(self.partition_names, str):
+ raise TypeError("partition_names must be an array of strings")
Review Comment:
Could you please add a test for `TypeError` in its new site?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]