apache / hudi-rs

A native Rust library for Apache Hudi, with bindings into Python
https://hudi.apache.org/
Apache License 2.0
149 stars 30 forks source link

fix: handle schema retrieval for datafusion api #187

Closed xushiyan closed 3 days ago

xushiyan commented 3 days ago

Description

Fix DataFusion integration get schema API to handle empty table case - the original Hudi table api returns an Err when retrieving schema fails. The DataFusion API expects a legit SchemaRef to return, so change to return empty schema when Hudi table api gives Err.

Resolves #126

How are the changes test-covered

codecov[bot] commented 3 days ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 90.93%. Comparing base (bf5c6dd) to head (759c01a). Report is 2 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #187 +/- ## ========================================== + Coverage 90.81% 90.93% +0.12% ========================================== Files 20 20 Lines 958 960 +2 ========================================== + Hits 870 873 +3 + Misses 88 87 -1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


🚨 Try these New Features: