Commit f4270d1
committed
fix(file-based): Switch Excel parser from calamine to openpyxl engine
Switch the Excel parser engine from calamine to openpyxl to prevent
crashes when parsing Excel files with invalid date values.
The calamine engine (Rust-based) panics when encountering date values
that result in years outside Python's datetime range (1-9999), causing
the entire sync to fail. The openpyxl engine (pure Python) handles
these edge cases more gracefully, allowing syncs to complete even with
data quality issues.
This fixes crashes like:
pyo3_runtime.PanicException: failed to construct date: PyErr {
type: <class 'ValueError'>,
value: ValueError('year 20225 is out of range')
}
Trade-off: openpyxl is slower than calamine, but reliability is more
important than speed for production syncs.
Fixes: airbytehq/oncall#10097
Co-Authored-By: unknown <>1 parent 5d9125f commit f4270d1
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
194 | | - | |
| 194 | + | |
0 commit comments