potiuk commented on a change in pull request #20422:
URL: https://github.com/apache/airflow/pull/20422#discussion_r772527276
##########
File path: airflow/providers/apache/cassandra/sensors/record.py
##########
@@ -58,17 +63,19 @@ class CassandraRecordSensor(BaseSensorOperator):
def __init__(
self,
*,
- table: str,
keys: Dict[str, str],
+ table: str,
cassandra_conn_id: str = CassandraHook.default_conn_name,
**kwargs: Any,
) -> None:
super().__init__(**kwargs)
self.cassandra_conn_id = cassandra_conn_id
+ if table is None:
+ raise RuntimeError("Please make sure that you set `table`
parameter in the sensor")
Review comment:
It works nicely with the stubs! Great idea!
--
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]