Skip to content

[arrow] Fix misleading exception message in ArrowBundleWriter#8514

Merged
JingsongLi merged 1 commit into
apache:masterfrom
thswlsqls:fix/arrow-bundle-writer-message
Jul 9, 2026
Merged

[arrow] Fix misleading exception message in ArrowBundleWriter#8514
JingsongLi merged 1 commit into
apache:masterfrom
thswlsqls:fix/arrow-bundle-writer-message

Conversation

@thswlsqls

Copy link
Copy Markdown
Contributor

Purpose

  • ArrowBundleWriter.addElement() threw RuntimeException("Exception happens while write to orc file"), but this class is the Arrow (not ORC) bundle writer — a dead reference left over from an ORC writer skeleton.
  • The wrong format name misleads operators who debug Arrow/Lance write failures from the log or stack trace.
  • Changed the message to "Exception happens while writing arrow record", matching the sibling messages in the same class ("Exception happens while add vsr", "Exception happens while flush to file").

Tests

  • Typo/wording fix, no behavior change — no test added. mvn -pl paimon-arrow spotless:check checkstyle:check (JDK 11) passes; the module's native/JNI unit tests run in CI.

ArrowBundleWriter.addElement() threw a RuntimeException whose message
referenced an "orc file", a dead reference copied from an ORC writer
skeleton. Correct it to name the Arrow write path, matching the sibling
messages in the same class.

Generated-by: Claude Code
@JingsongLi JingsongLi merged commit 356b8bb into apache:master Jul 9, 2026
12 checks passed
@thswlsqls thswlsqls deleted the fix/arrow-bundle-writer-message branch July 11, 2026 00:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants