Skip to content

Commit 2fc11a4

Browse files
committed
formatOptionId field has moved
1 parent 2948aff commit 2fc11a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dataikuapi/dss/recipe.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,11 +180,11 @@ def with_existing_output(self, dataset_name, append=False):
180180
self._with_output(dataset_name, append)
181181
return self
182182

183-
def with_new_output(self, name, connection_id, typeOptionId=None, format_option_id=None, partitioning_option_id=None, append=False, object_type='DATASET'):
183+
def with_new_output(self, name, connection_id, typeOptionId=None, format_option_id=None, override_sql_schema=None, partitioning_option_id=None, append=False, object_type='DATASET'):
184184
if object_type == 'DATASET':
185185
assert self.create_output_dataset is None
186186
self.create_output_dataset = True
187-
self.output_dataset_settings = {'connectionId':connection_id,'typeOptionId':typeOptionId,'formatOptionId':format_option_id,'partitioningOptionId':partitioning_option_id}
187+
self.output_dataset_settings = {'connectionId':connection_id,'typeOptionId':typeOptionId,'specificSettings':{'formatOptionId':format_option_id, 'overrideSQLSchema':override_sql_schema},'partitioningOptionId':partitioning_option_id}
188188
self._with_output(name, append)
189189
elif object_type == 'MANAGED_FOLDER':
190190
assert self.create_output_folder is None

0 commit comments

Comments
 (0)