alexandrusoare commented on code in PR #38858:
URL: https://github.com/apache/superset/pull/38858#discussion_r2994319728


##########
superset-frontend/plugins/plugin-chart-table/src/transformProps.ts:
##########
@@ -532,6 +533,20 @@ const transformProps = (
     comparison_type,
     slice_id,
   } = formData;
+  // Build a mapping from column labels to original column names.
+  // When a user creates an adhoc column with a custom label (e.g. 
sqlExpression: "state",
+  // label: "State_Renamed"), the query result uses the label as the column 
name.
+  // Cross-filtering needs the original column name to work on the receiving 
chart.
+  const columnLabelToNameMap: Record<string, string> = {};
+  const formColumns = ensureIsArray(
+    queryMode === QueryMode.Raw ? formData.all_columns : formData.groupby,

Review Comment:
   Is this relevant?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to