Skip to content

Commit 6a0adb2

Browse files
committed
Fix cloud test schema mismatch with pyarrow 23.x
Explicitly cast AVG() to DOUBLE in the parameterized query aggregation test to avoid FlightSQL schema inconsistency between flight info metadata and actual data batches.
1 parent fb49d88 commit 6a0adb2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/test_main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ def test_cloud_parameterized_query_aggregation():
546546
reader = client.query_with_params(
547547
"""SELECT o_orderstatus,
548548
COUNT(*) as order_count,
549-
AVG(o_totalprice) as avg_price,
549+
CAST(AVG(o_totalprice) AS DOUBLE) as avg_price,
550550
SUM(o_totalprice) as total_price
551551
FROM tpch.orders
552552
WHERE o_orderstatus = $1

0 commit comments

Comments
 (0)