Skip to content

Commit 19d3ac4

Browse files
committed
reduceBy should fall return type error for ungrouped columns.
1 parent 77cf823 commit 19d3ac4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Data/DataFrame/Operations.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ reduceBy name f df = case name `MS.lookup` DI.columnIndices df of
597597
Just ((GroupedUnboxedColumn (column :: Vector (VU.Vector a')))) -> case testEquality (typeRep @a) (typeRep @a') of
598598
Just Refl -> addColumn' name (Just $ DI.toColumn' (VG.map f column)) df
599599
Nothing -> error "Type error"
600-
Nothing -> error "Column is ungrouped"
600+
_ -> error "Column is ungrouped"
601601

602602
reduceByAgg :: T.Text
603603
-> Aggregation

0 commit comments

Comments
 (0)