Skip to content

Fix iceberg catalog recipe: TPC-H Q1 returns 4 rows, not 10 - #554

Open
claudespice wants to merge 1 commit into
spiceai:trunkfrom
claudespice:fix-iceberg-q1-row-count
Open

Fix iceberg catalog recipe: TPC-H Q1 returns 4 rows, not 10#554
claudespice wants to merge 1 commit into
spiceai:trunkfrom
claudespice:fix-iceberg-q1-row-count

Conversation

@claudespice

Copy link
Copy Markdown
Contributor

What the recipe says

catalogs/iceberg/README.md runs TPC-H Pricing Summary Report Query (Q1) against ice.tpch_sf1.lineitem and shows:

| A | F | ... |
| N | F | ... |
| N | O | ... |
| R | F | ... |
+---+---+-----+

Time: 0.186233833 seconds. 10 rows.

What the query returns

Q1 groups by (l_returnflag, l_linestatus). In TPC-H that pairing yields exactly four groups — (A,F), (N,F), (N,O), (R,F) — which is precisely what the recipe's own output block lists. The 10 rows summary contradicts the four rows printed directly above it.

Corroborated inside the cookbook itself: snowflake/README.md runs the same Q1 against the Snowflake TPC-H sample and reports Time: 1.398187833 seconds. 4 rows.

What changed

10 rows.4 rows. — a one-line fix to the expected output. The result table itself was already correct and is untouched.

Found by a repo-wide sweep comparing every N rows. claim against the rows actually shown in the preceding table.

The Pricing Summary Report Query groups by (l_returnflag, l_linestatus),
which yields exactly four groups in TPC-H: (A,F), (N,F), (N,O), (R,F).
The recipe's own output block lists those four rows but the summary line
claimed 10. The snowflake recipe runs the same query and correctly
reports 4 rows.
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.

1 participant