ulysses-you commented on code in PR #4417:
URL: https://github.com/apache/kyuubi/pull/4417#discussion_r1128881611
##########
kyuubi-server/src/main/scala/org/apache/kyuubi/server/trino/api/TrinoContext.scala:
##########
@@ -187,13 +187,20 @@ object TrinoContext {
queryHtmlUri: URI,
queryStatus: OperationStatus,
columns: Option[TGetResultSetMetadataResp] = None,
- data: Option[TRowSet] = None): QueryResults = {
+ data: Option[TRowSet] = None,
+ updateType: String = null): QueryResults = {
val columnList = columns match {
case Some(value) => convertTColumn(value)
case None => null
}
val rowList = data match {
+ case Some(value) if "PREPARE".equals(updateType) =>
+ val list1 = new util.LinkedList[util.List[Object]]
+ val list2 = new util.LinkedList[Object]()
+ list2.add(true.asInstanceOf[Object])
+ list1.add(list2)
+ list1
case Some(value) => convertTRowSet(value)
case None => null
}
Review Comment:
```
updateType match {
case Some("PREPARE") => ImmutableList.of(ImmutableList.of(true))
case _ => convertTRowSet(value)
}
```
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]