delta-io/delta

[Kernel] Validate readSchema is a subset of the table schema in ScanBuilder

Closed

#2,149 opened on Oct 6, 2023

 (6 comments) (0 reactions) (1 assignee)Scala (2,153 forks)batch import
enhancementgood first issuekernelstale

Repository metrics

Stars
 (8,939 stars)
PR merge metrics
 (Avg merge 7d 1h) (142 merged PRs in 30d)

Description

Feature request

Which Delta project/connector is this regarding?

  • Spark
  • Standalone
  • Flink
  • Kernel
  • Other (fill in here)

Overview

Validate that the read schema provided in ScanBuilder is a subset of the snapshot schema. https://github.com/delta-io/delta/blob/master/kernel/kernel-api/src/main/java/io/delta/kernel/internal/ScanBuilderImpl.java#L80

Motivation

Better validation / error messages.

Contributor guide