Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
courtneyholcomb committed Jun 13, 2024
1 parent ebc5bc7 commit f777c3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metricflow/sql/optimizer/sub_query_reducer.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def _reduce_is_possible(self, node: SqlSelectStatementNode) -> bool:
return False

# Group bys are hard to reduce.
if len(node.group_bys) > 0 or (parent_node.as_select_node and len(parent_node.as_select_node.group_bys) > 0):
if len(node.group_bys) > 0:
return False

# Similar with order bys.
Expand Down

0 comments on commit f777c3f

Please sign in to comment.