spring-projects / spring-projects/spring-batch

FlatFileItemReader requires "firstLineIsHeader" method [BATCH-1820]

Open
#1,772 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

in: core related-to: item-readers-writers status: waiting-for-triage type: enhancement
Dominant language
Java
Stars
3k
Forks
2.5k
Avg merge
6d 53m
Merged PRs (30d)
3

Description

Thomas Hackel opened BATCH-1820 and commented

This very nice functionality was present in Spring Batch <2.0.
It allows to use the BeanWrapperFieldSetMapper without assigning the column names to the tokenizer.

Please bring back this feature, even its possible to get around with an ugly LineCallbackHandler construction.


Affects: 2.1.8

2 votes, 3 watchers

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating FlatFileItemReader and reviewing how the current LineCallbackHandler workaround supplies header information. Restore the requested firstLineIsHeader behavior and verify it with tests covering header-based column mapping.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.