In the Modern UX (MUX) Reporting module, when a SQL SELECT CASE expression is used against a standard string field within a Data Provider query, the system incorrectly evaluates the computed column and treats the field as a Large String rather than a standard String.
Steps to Reproduce:
SELECT CASE
WHEN investment_type_key = 'project' THEN 'Project'
ELSE investment_type_key
END AS type_key
FROM dwh_inv_investmentExpected Results: The computed attribute (type_key) should be recognized and displayed as a standard String data type.
Actual Results: The attribute is incorrectly defined as Large String - Plain Text, which can impact downstream report formatting, sorting, and filtering.
Clarity 16.4.2
DE207788
Fixed in
Workaround: To ensure the attribute is recognized as a standard String, you must explicitly wrap the CASE expression in a CAST() function, defining the data type to match the original field's VARCHAR length.
Example Workaround Query:
SELECT CAST(
CASE
WHEN investment_type_key = 'project' THEN 'Project'
ELSE investment_type_key
END AS varchar(48)
) AS type_key
FROM dwh_inv_investment