From 1281fb2641d010301089886a82aceefff76b3429 Mon Sep 17 00:00:00 2001 From: Shaun Davis Date: Mon, 2 Oct 2023 10:32:59 -0400 Subject: [PATCH] added function to update the length of a string column --- dataikuapi/dss/dataset.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/dataikuapi/dss/dataset.py b/dataikuapi/dss/dataset.py index ea746766..980b0ab1 100644 --- a/dataikuapi/dss/dataset.py +++ b/dataikuapi/dss/dataset.py @@ -818,6 +818,15 @@ def add_time_partitioning_dimension(self, dim_name, period="DAY"): def add_raw_schema_column(self, column): self.settings["schema"]["columns"].append(column) + def update_string_column_len(self, column, length): + """ + Update the length of a string column in a Dataset schema + """ + columns = self.settings["schema"]["columns"] + for c in columns: + if c['name'] == column: + c['maxLength'] = length + @property def is_feature_group(self): """