yiheng commented on a change in pull request #200: [LIVY-637]Fix 
NullPointerException when create database using thrifts…
URL: https://github.com/apache/incubator-livy/pull/200#discussion_r315044002
 
 

 ##########
 File path: 
thriftserver/server/src/main/scala/org/apache/livy/thriftserver/serde/ThriftResultSet.scala
 ##########
 @@ -112,6 +112,7 @@ class ColumnOrientedResultSet(
 
   override def toTRowSet: TRowSet = {
     val tRowSet = new TRowSet(rowOffset, new util.ArrayList[TRow])
+    tRowSet.setColumns(new util.ArrayList[TColumn]())
 
 Review comment:
   should we add a comment here to explain why we have this?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to