wangshengjie created SPARK-38845:
------------------------------------
Summary: SparkContext init before SparkSession will cause hive
table not found
Key: SPARK-38845
URL: https://issues.apache.org/jira/browse/SPARK-38845
Project: Spark
Issue Type: Bug
Components: SQL
Affects Versions: 3.2.1, 3.1.2
Environment: If we init SparkContext before SparkSession when using
DataFrame to query hive table, if will throw table not found exception.
{code:java}
//代码占位符
val sparkContext = new SparkContext()
val sparkSession = SparkSession
.builder
.appName("SparkSession Test")
.enableHiveSupport()
.getOrCreate()
sparkSession.sql("select * from tableA"){code}
Reporter: wangshengjie
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]