Skip to content

Commit

Permalink
test: re-enable window function over parquet with forced collisions (a…
Browse files Browse the repository at this point in the history
…pache#11939)

* test: window function over parquet with forced collisions

* trigger CI
  • Loading branch information
korowa authored Aug 14, 2024
1 parent afa23ab commit e4be013
Showing 1 changed file with 18 additions and 20 deletions.
38 changes: 18 additions & 20 deletions datafusion/sqllogictest/test_files/parquet.slt
Original file line number Diff line number Diff line change
Expand Up @@ -251,27 +251,25 @@ SELECT COUNT(*) FROM timestamp_with_tz;
----
131072

# FIXME(#TODO) fails with feature `force_hash_collisions`
# https://github.com/apache/datafusion/issues/11660
# 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;
# ----
# 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"))
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;
----
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"))

# Test config listing_table_ignore_subdirectory:

Expand Down

0 comments on commit e4be013

Please sign in to comment.