Skip to content

fix(docreader): restore optional XLSX header context - #2314

Merged
lyingbug merged 2 commits into
Tencent:mainfrom
WHUTcjh-2024:codex/issue-2310-excel-header-context
Jul 28, 2026
Merged

fix(docreader): restore optional XLSX header context#2314
lyingbug merged 2 commits into
Tencent:mainfrom
WHUTcjh-2024:codex/issue-2310-excel-header-context

Conversation

@WHUTcjh-2024

Copy link
Copy Markdown
Contributor

Summary

  • add an opt-in built-in XLSX parser setting that uses row 1 as column context for every data row
  • keep the current lossless behavior by default, including safe handling for single-row and malformed headers
  • reuse the existing parser-rule and override pipeline without database or protocol changes

The v0.7.1 built-in XLSX path treats row 1 as ordinary A/B/C data, leaving later rows without semantic column context.

Validation

  • Excel parser unit suite: 17 tests run, 3 environment-dependent skips
  • go test ./internal/application/service -run 'TestEffectiveChunkingConfig_ResolveParserEngineFromOverrides|TestApplyParserRuleOverrides_XLSXFirstRowAsHeader' -count=1
  • npm run build-only
  • git diff --check

Closes #2310

Normalize Excel file types when resolving parser rules and applying the
xlsx_first_row_as_header override for both xlsx and xls. Skip the override
for non-builtin engines, unify legacy XLS parsing with the XLSX default path,
and extend tests for case handling and explicit false overrides.
@lyingbug
lyingbug merged commit 36206ae into Tencent:main Jul 28, 2026
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.

[Question]: 更新0.7以后如何按以前的方式对表格文件.xlsx、.csv进行分块

2 participants