File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -737,6 +737,7 @@ def execute(
737
737
self ,
738
738
operation : str ,
739
739
parameters : Optional [TParameterCollection ] = None ,
740
+ enforce_embedded_schema_correctness = False ,
740
741
) -> "Cursor" :
741
742
"""
742
743
Execute a query and wait for execution to complete.
@@ -801,6 +802,7 @@ def execute(
801
802
use_cloud_fetch = self .connection .use_cloud_fetch ,
802
803
parameters = prepared_params ,
803
804
async_op = False ,
805
+ enforce_embedded_schema_correctness = enforce_embedded_schema_correctness ,
804
806
)
805
807
self .active_result_set = ResultSet (
806
808
self .connection ,
@@ -822,6 +824,7 @@ def execute_async(
822
824
self ,
823
825
operation : str ,
824
826
parameters : Optional [TParameterCollection ] = None ,
827
+ enforce_embedded_schema_correctness = False ,
825
828
) -> "Cursor" :
826
829
"""
827
830
@@ -862,6 +865,7 @@ def execute_async(
862
865
use_cloud_fetch = self .connection .use_cloud_fetch ,
863
866
parameters = prepared_params ,
864
867
async_op = True ,
868
+ enforce_embedded_schema_correctness = enforce_embedded_schema_correctness ,
865
869
)
866
870
867
871
return self
Original file line number Diff line number Diff line change @@ -883,6 +883,7 @@ def execute_command(
883
883
use_cloud_fetch = True ,
884
884
parameters = [],
885
885
async_op = False ,
886
+ enforce_embedded_schema_correctness = False ,
886
887
):
887
888
assert session_handle is not None
888
889
@@ -910,6 +911,7 @@ def execute_command(
910
911
},
911
912
useArrowNativeTypes = spark_arrow_types ,
912
913
parameters = parameters ,
914
+ enforceEmbeddedSchemaCorrectness = enforce_embedded_schema_correctness ,
913
915
)
914
916
resp = self .make_request (self ._client .ExecuteStatement , req )
915
917
You can’t perform that action at this time.
0 commit comments