Skip to content

Commit 968ca51

Browse files
author
Alexey Kudinkin
committed
Remove mandatory fields for BaseFileOnlyRelation
1 parent 0c4b09e commit 968ca51

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

hudi-spark-datasource/hudi-spark-common/src/main/scala/org/apache/hudi/BaseFileOnlyRelation.scala

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,7 @@ class BaseFileOnlyRelation(sqlContext: SQLContext,
5454

5555
override type FileSplit = HoodieBaseFileSplit
5656

57-
override lazy val mandatoryFields: Seq[String] =
58-
// TODO reconcile, record's key shouldn't be mandatory for base-file only relation
59-
Seq(recordKeyField)
57+
override lazy val mandatoryFields: Seq[String] = Seq.empty
6058

6159
override def imbueConfigs(sqlContext: SQLContext): Unit = {
6260
super.imbueConfigs(sqlContext)

0 commit comments

Comments
 (0)