Skip to content

Commit 2f24c10

Browse files
committed
address comments
1 parent e130e1c commit 2f24c10

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sql/hive/src/main/scala/org/apache/spark/sql/hive/execution/HiveFileFormat.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ class HiveFileFormat(fileSinkConf: FileSinkDesc) extends FileFormat {
4646
override def inferSchema(
4747
sparkSession: SparkSession,
4848
options: Map[String, String],
49-
files: Seq[FileStatus]): Option[StructType] = None
49+
files: Seq[FileStatus]): Option[StructType] = {
50+
throw new UnsupportedOperationException(s"inferSchema is not supported for hive data source.")
51+
}
5052

5153
override def prepareWrite(
5254
sparkSession: SparkSession,

0 commit comments

Comments
 (0)