Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
.hiverc is loaded twice making create function throw exception
  • Loading branch information
WeiWenda committed Sep 25, 2019
commit abc8be45255e2071a93b58386748c3cae031f6a4
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ object SparkXSQLShell extends Logging {
sqlContext = spark.sqlContext
conf = spark.sparkContext.getConf
sc = spark.sparkContext
processInitFile(conf)
// we shouldn't load .hiverc twice
// processInitFile(conf)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

processInitFile is only used for load .hiverc?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

processInitFile is only used for load .hiverc?

Yes

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should change coment as 'Don't call processInitFile again to avoid load .hiverc twice.'

}

def initialize(sqlContent: String, conf: SparkConf) = {
Expand Down