Closed cgivre closed 1 year ago
@jnturton
I updated the PR to default to false
and updated the README as well.
Reviewer's note: all format-excel tests do pass, the CI test failures here are a result of as yet unfixed breakage brought in by Calcite 1.35-SNAPSHOT.
Once https://github.com/apache/drill/pull/2794 is merged, I'll rebase and merge this, pending @jnturton's approval.
DRILL-8417: Allow Excel Reader to Ignore Formula Errors
Description
If Drill encounters an Excel formula which is invalid somehow, such as a
DIV/0
, Drill is unable to proceed and throws a number format exception. This PR adds a config parameter calledignoreErrors
which allows Drill to skip such records and returnsnull
for that cell. Drill will also output a log warning. When set tofalse
, original behavior is retained.Documentation
Updated README
ignoreErrors
: Defaults tofalse
. When set totrue
Drill will returnnull
for any formulas or any values that are unparseable.Testing
Added two unit tests.