Skip to content

Commit

Permalink
Fix typo in error message
Browse files Browse the repository at this point in the history
  • Loading branch information
tools4origins committed Sep 26, 2021
1 parent 91b2e3d commit 78fc641
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pysparkling/sql/expressions/mappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1238,7 +1238,7 @@ class Grouping(UnaryExpression):
def eval(self, row, schema):
metadata = row.get_metadata()
if metadata is None or "grouping" not in metadata:
raise AnalysisException("grouping_id() can only be used with GroupingSets/Cube/Rollup")
raise AnalysisException("grouping() can only be used with GroupingSets/Cube/Rollup")
pos = self.column.find_position_in_schema(schema)
return int(metadata["grouping"][pos])

Expand Down

0 comments on commit 78fc641

Please sign in to comment.