[Feature Request]: field metadata inheritance: blank overrides wipe or corrupt inherited value metadata
I maintainer di solito rispondono entro 1 giorno
@hansva ci sta già lavorando.
Dal 28/10/2026.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
What would you like to happen?
Summary
Since 2.18 a saved <format/> (or a blank JSON value) loads as "" instead of null. Many transforms still guard overrides with if (x != null) vm.setX(x). A blank Format, Decimal, Grouping or Currency setting therefore overwrites the incoming field's metadata with an empty string. #8956 fixed this in Text File Output's getFields(). An audit of all 277 transforms found the same pattern, and related ones, in many other places. Of 34 suspects, 26 are bugs, 3 are inconsistencies and 5 are by design.
Root causes and proposed fixes
Most of the bugs come from four root causes, so a few core helpers close most of them:
| Root cause | Fix | Closes | |
|---|---|---|---|
| A | A blank override overwrites inherited metadata | One applyOverrides(vm, …) helper with Utils.isEmpty / >= 0 guards |
Text File Output, XML Output, Select values (rounding, length), Concat fields |
| B | Text is parsed with a bare ValueMetaString or a hand-rolled parser, so it follows the JVM locale |
Parse with target.cloneToType(String). Without a format column, use a locale-neutral "machine" meta (. decimal, ISO dates) |
Database lookup, Stream lookup, Value mapper, Null if, Add constants, OData, YAML, Google Sheets Input, Table Input |
| C | cloneValueMeta on a type change copies storage and masks across type families, and drops currency and sort flags |
On a type change: storage NORMAL, no mask between Number and Date, keep currency, collator locale and sort flags | Replace-mode ClassCastExceptions (Formula, Janino, Regex, JavaScript, …), Select values Number→Date, Merge join sort flags |
| D | Machine formats (SQL literals, bulk-load files) are written with display formatting | A helper for neutral text (toPlainString, . decimal, ISO-8601 with offset) |
SQL File Output, Execute SQL, Web services, Parquet, Snowflake, Redshift, CrateDB and PG bulk loaders, Iceberg, Salesforce Input |
Most important cases
- Text File Output clears decimal, grouping, currency, rounding, trim and length when they are left blank.
- Text File Input date locale is broken for non-English locales (regression from 6bdc5fd095).
- Salesforce Input turns
1234.56into123456onde_DE. - Select values: the storage change does nothing (regression #1929), and a blank rounding setting is saved as
half_even. - Database lookup, Stream lookup, Value mapper, Null if: default values are parsed in the JVM locale, so
1.5becomes15.
Plan
- Fix root causes A and C first: they are small core changes and continue #8956.
- Fix the Text File Input and Select values regressions.
- Fix root cause D after a short design note on neutral formats.
- Add an integration-test run in
de_DE(ornl_BE). CI pinsen_USand cannot catch locale regressions today.
Compatibility
Eight fixes are high risk because they change output that existing pipelines may rely on: Text File Output, XML Output, Add XML, Concat fields, Table Input, Execute SQL, Group by and Memory group by. For these, give new transforms the new behaviour. Transforms loaded from existing files keep the old behaviour behind a compatibility checkbox, or a HOP_* variable. Each change gets a before/after example in the release notes.
Issue Priority
Priority: 2
Issue Component
Component: API
- Lingua principale
- Java
- Stelle
- 1.6k
- Fork
- 499
- Merge medio
- 1g 5h
- PR unite (30g)
- 316
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di apache/hop
-
Beam P2
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
I maintainer di solito rispondono entro 1 giorno
-
awaiting triage Hop Gui P3
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
apache/hop#9325 · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
awaiting triage Documentation P3
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
awaiting triage Documentation P3
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
I maintainer di solito rispondono entro 1 giorno
-
awaiting triage Documentation P3
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
-
CI: LFC/ANTLR caches still use the old lfc/ paths, so the ANTLR jar is downloaded on every runForse già presa @NicoBiernat l’ha presa oggi. Apertabug CI
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
lf-lang/reactor-uc#443 ·
I maintainer di solito rispondono entro 4 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
Card-Forge/forge#13128 ·
I maintainer di solito rispondono entro 1 giorno
-
client documentation
Difficoltà 1/5 1-3 ore Idoneità per principianti 86/100
ClickHouse/clickhouse-java#3469 ·
I maintainer di solito rispondono entro 1 giorno
-
bug good first issue help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
I maintainer di solito rispondono entro 1 giorno