Skip to content

Commit

Permalink
use catalog first
Browse files Browse the repository at this point in the history
  • Loading branch information
lsm1 committed Mar 31, 2023
1 parent 4c2f1e6 commit eda34d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class FlinkSessionImpl(

override def open(): Unit = {
executor.openSession(handle.identifier.toString)
normalizedConf.foreach {
normalizedConf.toSeq.sortBy(!_._1.equals("use:catalog")).foreach {
case ("use:catalog", catalog) =>
val tableEnv = sessionContext.getExecutionContext.getTableEnvironment
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class SparkSessionImpl(
private val sessionEvent = SessionEvent(this)

override def open(): Unit = {
normalizedConf.foreach {
normalizedConf.toSeq.sortBy(!_._1.equals("use:catalog")).foreach {
case ("use:catalog", catalog) =>
try {
SparkCatalogShim().setCurrentCatalog(spark, catalog)
Expand Down

0 comments on commit eda34d4

Please sign in to comment.