You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[FSTORE-1630] Model Dependent Transformation Functions creates feature names that are longer than 64 character causing logging feature group ingestion to fail (#428)
* adding alias function to modify output column names
* adding unit tests
* fixing generation of output column names when udf is shared between transformation functions
* updating documentation
* converting error caused due to long column names to a warning and trying to solve the problem by manually slicing the column names
* adding tests for creation of stripped column names
* correcting documentation mistake and making test self contained
# The parameter `output_column_names` is initialized lazily.
201
+
# It is only initialized if the output column names are retrieved from the backend or explicitly specified using the `alias` function or is initialized with default column names if the UDF is accessed from a transformation function.
202
+
# Output column names are only stored in the backend when a model dependent or on demand transformation function is created using the defined UDF.
203
+
self._output_column_names: List[str] = []
204
+
194
205
ifnottransformation_features:
195
206
# New transformation function being declared so extract source code from function
# Denote if the output feature names have to be generated.
248
+
# Set to `False` if the output column names are saved in the backend and the udf is constructed from it using `from_response_json` function or if user has specified the output feature names using the `alias`` function.
f"Invalid output feature names specified for the transformation function '{repr(self)}'. Please provide names shorter than {FEATURES.MAX_LENGTH_NAME} characters."
f"The number of output feature names provided does not match the number of features returned by the transformation function '{repr(self)}'. Pease provide exactly {len(self.return_types)} feature name(s) to match the output."
0 commit comments