Skip to content

Commit

Permalink
fix: cast support fields nested in lists and maps (#2541)
Browse files Browse the repository at this point in the history
# Description

The current implementation of cast only works for structs nested in
structs. This PR adds supports for structs contained in other types
(lists and maps). This PR also prevents cast from adding nullable column
if the field is not nullable, instead it will throw an error.

Note: This is only a partial solution which would let you merge schema
with nested missing columns, it does not allow delta-rs to read the
merged schema (though Spark can). To read the merged schema will require
another change where delta-rs defines its own datafusion parquet
schemaAdapter.
  • Loading branch information
HawaiianSpork committed Jun 5, 2024
1 parent bc3bdb7 commit f23c92d
Showing 1 changed file with 447 additions and 41 deletions.
Loading

0 comments on commit f23c92d

Please sign in to comment.