mikebridge commented on code in PR #44270:
URL: https://github.com/apache/superset/pull/44270#discussion_r4043682387
##########
superset/mcp_service/semantic_layer/tool/get_table.py:
##########
@@ -264,7 +342,18 @@ def _build_response(
warnings=warnings,
)
- columns_meta = format_data_columns(data, raw_columns)
+ # Semantic views return grain variants as <temporal dimension>__<grain>.
+ result_temporal_columns: set[str] = {
+ name
+ for name in raw_columns
+ if any(
+ name == base or name.startswith(f"{base}__")
+ for base in temporal_columns or set()
+ )
+ }
Review Comment:
addressed in 1ec03ef4645f7edb6d2375e00b43ddd497f78054
--
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]