Github user andrewor14 commented on a diff in the pull request:
https://github.com/apache/spark/pull/12851#discussion_r62220387
--- Diff: sql/hive/src/test/resources/regression-test-SPARK-8489/Main.scala
---
@@ -33,8 +33,14 @@ object Main {
def main(args: Array[String]) {
// scalastyle:off println
println("Running regression test for SPARK-8489.")
- val sc = new SparkContext("local", "testing")
- val sparkSession = SparkSession.withHiveSupport(sc)
+
+ val conf = new SparkConf()
+ .setMaster("local")
+ .setAppName("testing")
+
+ val sparkSession =
SparkSession.builder.enableHiveSupport().getOrCreate()
--- End diff --
this should use the builder's conf method. By the way for this file I would
leave it unchanged and fix it in #12924 instead, since @dilipbiswal is actually
rebuilding the jar there.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]