intent: an integer capacity:/balance:/of: on a sum roll-up passes the parser but generates uncompilable Java (BigDecimal assumed)
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Read IntentParser.java and RollupAggregates.renderSum, then inspect Repository.java.template for the capacity guard. Trace how Calc narrows numeric values and compare that with the generated Java for integer and long fields. Reproduce with a capacity-bearing sum roll-up using an integer field; done when generated Java compiles and its capacity, balance, and guard calculations handle integer types, with relevant tests passing.
索引モデルが issue の本文から書いたものです。
説明
Problem
IntentParser accepts integer / int / long for a sum roll-up's capacity: / balance: / of: (NUMERIC_TYPES = integer, int, long, decimal, double). The emitted Java assumes BigDecimal throughout, though, so an integer capacity (e.g. seats, hours, units) generates code that does not compile. The whole client-Java batch fails with it, and every controller 404s.
Where (release commit 862f6d1a, 14.93.0)
- IntentParser.java L145-L146 and
requireNumericParentField(~L2439) admit the integer types. - RollupAggregates.renderSum emits
java.math.BigDecimal capacity = parent.<capacity> == null ? BigDecimal.ZERO : parent.<capacity>;,sum = sum.add(row.<of>)andparent.<balance> = capacity.subtract(sum). None of these compile for anInteger/Longproperty. - The capacity guard in Repository.java.template (~L135-L146) has the same issue:
guardConsumed.add(guardRow.<of>)andcompareTo(guardParent.<capacity>).
Expected
Either convert at the boundary (new BigDecimal(String.valueOf(x)) / BigDecimal.valueOf(long) in, intValue()/longValue() out, the way Calc already narrows), or have the parser refuse non-decimal types for a capacity-bearing sum with a message that says so. Conversion is what users expect for a seat or hour count.
Found on 14.88.0 by BusinessIntents (wave 2026-10-17) and re-checked against the 14.93.0 source; still present.
🤖 Generated with Claude Code
- 主要言語
- Java
- スター
- 278
- フォーク
- 97
- 平均マージ
- 18時間 57分
- マージ済み PR(30日)
- 249
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
eclipse-dirigible/dirigible のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
eclipse-dirigible/dirigible#7958 ·
メンテナーはふだん 1 日以内に返信
-
intent: a create-from without fromStatus answers 200 on a missing or unknown source id (no 400/404)オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
eclipse-dirigible/dirigible#7945 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
eclipse-dirigible/dirigible#7891 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
eclipse-dirigible/dirigible#6538 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
eclipse-dirigible/dirigible#4812 ·
メンテナーはふだん 1 日以内に返信
eclipse-dirigible/dirigible の issue をすべて見る
似ている issue
-
Optimize consumer version heatmap aggregation to avoid repeated scans対応中かも @praykaria31 が今日担当しました。 オープンtype/enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
Apicurio/apicurio-registry#10662 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
a:false-positive
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
メンテナーはふだん 1 日以内に返信
-
status: waiting-for-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
spring-projects/spring-boot#52347 ·
メンテナーはふだん 2 日以内に返信
-
bug untriaged
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
opensearch-project/opensearch-migrations#3480 ·
メンテナーはふだん 2 日以内に返信
-
enhancement feature
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
rsp777/service-pulse-app#28 ·