Skip to content

Commit

Permalink
[KYUUBI #360] fix ut
Browse files Browse the repository at this point in the history
  • Loading branch information
pan3793 committed Feb 25, 2021
1 parent eda3e59 commit 3d1b2a6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ object ThriftUtils {
}
}

val EMPTY_ROW_SET = new TRowSet(0, new java.util.ArrayList[TRow](0))
def newEmptyRowSet: TRowSet = new TRowSet(0, new java.util.ArrayList[TRow](0))

val EMPTY_ROW_SET: TRowSet = newEmptyRowSet

}
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class NoopOperation(typ: OperationType, session: Session, shouldFail: Boolean =

override def getNextRowSet(order: FetchOrientation, rowSetSize: Int): TRowSet = {
val col = TColumn.stringVal(new TStringColumn(Seq(typ.toString).asJava, ByteBuffer.allocate(0)))
val tRowSet = ThriftUtils.EMPTY_ROW_SET
val tRowSet = ThriftUtils.newEmptyRowSet
tRowSet.addToColumns(col)
tRowSet
}
Expand Down

0 comments on commit 3d1b2a6

Please sign in to comment.