delta-io/delta

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

Open

#2,149 opened on Oct 6, 2023

View on GitHub
 (5 comments) (0 reactions) (1 assignee)Scala (2,100 forks)batch import
enhancementgood first issuekernel

Repository metrics

Stars
 (8,807 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