Skip to content

Commit

Permalink
test: check record count and types in paqruet window test
Browse files Browse the repository at this point in the history
  • Loading branch information
korowa committed Sep 1, 2024
1 parent ff7d76d commit 8e32dea
Showing 1 changed file with 12 additions and 17 deletions.
29 changes: 12 additions & 17 deletions datafusion/sqllogictest/test_files/parquet.slt
Original file line number Diff line number Diff line change
Expand Up @@ -252,24 +252,19 @@ SELECT COUNT(*) FROM timestamp_with_tz;
131072

# Perform the query:
query IPT
SELECT
count,
LAG(timestamp, 1) OVER (ORDER BY timestamp),
arrow_typeof(LAG(timestamp, 1) OVER (ORDER BY timestamp))
FROM timestamp_with_tz
LIMIT 10;
query TTI
SELECT arrow_typeof(count),
arrow_typeof(lag_timestamp),
COUNT(1)
FROM (
SELECT
count,
LAG(timestamp, 1) OVER (ORDER BY timestamp) AS lag_timestamp
FROM timestamp_with_tz
) t
GROUP BY 1, 2
----
0 NULL Timestamp(Millisecond, Some("UTC"))
0 2014-08-27T14:00:00Z Timestamp(Millisecond, Some("UTC"))
0 2014-08-27T14:00:00Z Timestamp(Millisecond, Some("UTC"))
4 2014-08-27T14:00:00Z Timestamp(Millisecond, Some("UTC"))
0 2014-08-27T14:00:00Z Timestamp(Millisecond, Some("UTC"))
0 2014-08-27T14:00:00Z Timestamp(Millisecond, Some("UTC"))
0 2014-08-27T14:00:00Z Timestamp(Millisecond, Some("UTC"))
14 2014-08-27T14:00:00Z Timestamp(Millisecond, Some("UTC"))
0 2014-08-27T14:00:00Z Timestamp(Millisecond, Some("UTC"))
0 2014-08-27T14:00:00Z Timestamp(Millisecond, Some("UTC"))
Int64 Timestamp(Millisecond, Some("UTC")) 131072

# Test config listing_table_ignore_subdirectory:

Expand Down

0 comments on commit 8e32dea

Please sign in to comment.