We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e130e1c commit 2f24c10Copy full SHA for 2f24c10
sql/hive/src/main/scala/org/apache/spark/sql/hive/execution/HiveFileFormat.scala
@@ -46,7 +46,9 @@ class HiveFileFormat(fileSinkConf: FileSinkDesc) extends FileFormat {
46
override def inferSchema(
47
sparkSession: SparkSession,
48
options: Map[String, String],
49
- files: Seq[FileStatus]): Option[StructType] = None
+ files: Seq[FileStatus]): Option[StructType] = {
50
+ throw new UnsupportedOperationException(s"inferSchema is not supported for hive data source.")
51
+ }
52
53
override def prepareWrite(
54
0 commit comments