Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix typecast error from missing type arguments
Browse files Browse the repository at this point in the history
ehigham committed Dec 12, 2024

Verified

This commit was signed with the committer’s verified signature.
ehigham Edmund Higham
1 parent 668614a commit 969c75d
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
@@ -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" =>

0 comments on commit 969c75d

Please sign in to comment.