We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd083f6 commit 8d30436Copy full SHA for 8d30436
src/databricks/sql/client.py
@@ -876,6 +876,19 @@ def is_query_pending(self):
876
ttypes.TOperationState.PENDING_STATE,
877
]
878
879
+ def is_query_pending(self):
880
+ """
881
+ Checks whether the async executing query is in pending state or not
882
+
883
+ :return:
884
885
+ operation_state = self.get_query_state()
886
887
+ return not operation_state or operation_state in [
888
+ ttypes.TOperationState.RUNNING_STATE,
889
+ ttypes.TOperationState.PENDING_STATE,
890
+ ]
891
892
def get_async_execution_result(self):
893
"""
894
0 commit comments