Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
bowenliang123 committed Dec 29, 2023
1 parent e12528c commit 768e1e9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ abstract class ChatOperation(session: Session) extends AbstractOperation(session

protected lazy val conf: KyuubiConf = session.sessionManager.getConf

protected val isGenerateTRowSetInParallel: Boolean =
session.conf(KyuubiConf.OPERATION_TROWSET_GENERATION_IN_PARALLEL.key).toBoolean
protected val isGenerateTRowSetInParallel: Boolean = session.conf
.getOrElse(KyuubiConf.OPERATION_TROWSET_GENERATION_IN_PARALLEL.key, "false").toBoolean

override def getNextRowSetInternal(
order: FetchOrientation,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ abstract class FlinkOperation(session: Session) extends AbstractOperation(sessio

protected var resultSet: ResultSet = _

protected val isGenerateTRowSetInParallel: Boolean =
session.conf(KyuubiConf.OPERATION_TROWSET_GENERATION_IN_PARALLEL.key).toBoolean
protected val isGenerateTRowSetInParallel: Boolean = session.conf
.getOrElse(KyuubiConf.OPERATION_TROWSET_GENERATION_IN_PARALLEL.key, "false").toBoolean

override protected def beforeRun(): Unit = {
setHasResultSet(true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ abstract class JdbcOperation(session: Session) extends AbstractOperation(session

protected lazy val dialect: JdbcDialect = JdbcDialects.get(conf)

protected val isGenerateTRowSetInParallel: Boolean =
session.conf(KyuubiConf.OPERATION_TROWSET_GENERATION_IN_PARALLEL.key).toBoolean
protected val isGenerateTRowSetInParallel: Boolean = session.conf
.getOrElse(KyuubiConf.OPERATION_TROWSET_GENERATION_IN_PARALLEL.key, "false").toBoolean

def validateFetchOrientation(order: FetchOrientation): Unit =
validateDefaultFetchOrientation(order)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ abstract class TrinoOperation(session: Session) extends AbstractOperation(sessio

protected var iter: FetchIterator[List[Any]] = _

protected val isGenerateTRowSetInParallel: Boolean =
session.conf(KyuubiConf.OPERATION_TROWSET_GENERATION_IN_PARALLEL.key).toBoolean
protected val isGenerateTRowSetInParallel: Boolean = session.conf
.getOrElse(KyuubiConf.OPERATION_TROWSET_GENERATION_IN_PARALLEL.key, "false").toBoolean

override def getResultSetMetadata: TGetResultSetMetadataResp = {
val tTableSchema = SchemaHelper.toTTableSchema(schema)
Expand Down

0 comments on commit 768e1e9

Please sign in to comment.