Skip to content

Commit

Permalink
fix typecast error from missing type arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
ehigham committed Oct 31, 2024
1 parent 8d0db73 commit 5a61217
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions hail/src/main/scala/is/hail/expr/ir/Parser.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1943,29 +1943,29 @@ object IRParser {
ir_value_expr(ctx)(it).map { ir_ =>
val ir = annotateTypes(ctx, ir_, BindingEnv.empty).asInstanceOf[IR]
val Row(starts: IndexedSeq[Long @unchecked], stops: IndexedSeq[Long @unchecked]) =
CompileAndEvaluate(ctx, ir)
CompileAndEvaluate[Row](ctx, ir)
RowIntervalSparsifier(blocksOnly, starts, stops)
}
case "PyBandSparsifier" =>
val blocksOnly = boolean_literal(it)
punctuation(it, ")")
ir_value_expr(ctx)(it).map { ir_ =>
val ir = annotateTypes(ctx, ir_, BindingEnv.empty).asInstanceOf[IR]
val Row(l: Long, u: Long) = CompileAndEvaluate(ctx, ir)
val Row(l: Long, u: Long) = CompileAndEvaluate[Row](ctx, ir)
BandSparsifier(blocksOnly, l, u)
}
case "PyPerBlockSparsifier" =>
punctuation(it, ")")
ir_value_expr(ctx)(it).map { ir_ =>
val ir = annotateTypes(ctx, ir_, BindingEnv.empty).asInstanceOf[IR]
val indices: IndexedSeq[Int] = CompileAndEvaluate(ctx, ir)
val indices = CompileAndEvaluate[IndexedSeq[Int]](ctx, ir)
PerBlockSparsifier(indices)
}
case "PyRectangleSparsifier" =>
punctuation(it, ")")
ir_value_expr(ctx)(it).map { ir_ =>
val ir = annotateTypes(ctx, ir_, BindingEnv.empty).asInstanceOf[IR]
val rectangles: IndexedSeq[Long] = CompileAndEvaluate(ctx, ir)
val rectangles = CompileAndEvaluate[IndexedSeq[Long]](ctx, ir)
RectangleSparsifier(rectangles.grouped(4).toIndexedSeq)
}
case "RowIntervalSparsifier" =>
Expand Down

0 comments on commit 5a61217

Please sign in to comment.