Skip to content

Commit b6fe45c

Browse files
committed
update golden file
Signed-off-by: DylanGuedes <djmgguedes@gmail.com>
1 parent 0783234 commit b6fe45c

1 file changed

Lines changed: 38 additions & 68 deletions

File tree

sql/core/src/test/resources/sql-tests/results/pgSQL/window_part1.sql.out

Lines changed: 38 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
-- Automatically generated by SQLQueryTestSuite
2-
-- Number of queries: 57
2+
-- Number of queries: 56
33

44

55
-- !query 0
@@ -731,42 +731,12 @@ struct<four:int,ten:int,sum(ten) OVER (PARTITION BY four ORDER BY ten ASC NULLS
731731

732732
-- !query 43
733733
SELECT four, ten/4 as two,
734-
sum(ten/4) over (partition by four order by ten/4 range between unbounded preceding and current row),
735-
last(ten/4) over (partition by four order by ten/4 range between unbounded preceding and current row)
736-
FROM (select distinct ten, four from tenk1) ss
737-
-- !query 43 schema
738-
struct<four:int,two:int,sum((ten div 4)) OVER (PARTITION BY four ORDER BY (ten div 4) ASC NULLS FIRST RANGE BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW):bigint,last((ten div 4), false) OVER (PARTITION BY four ORDER BY (ten div 4) ASC NULLS FIRST RANGE BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW):int>
739-
-- !query 43 output
740-
0 0 0 0
741-
0 0 0 0
742-
0 1 2 1
743-
0 1 2 1
744-
0 2 4 2
745-
1 0 0 0
746-
1 0 0 0
747-
1 1 2 1
748-
1 1 2 1
749-
1 2 4 2
750-
2 0 0 0
751-
2 0 0 0
752-
2 1 2 1
753-
2 1 2 1
754-
2 2 4 2
755-
3 0 0 0
756-
3 0 0 0
757-
3 1 2 1
758-
3 1 2 1
759-
3 2 4 2
760-
761-
762-
-- !query 44
763-
SELECT four, ten/4 as two,
764734
sum(ten/4) over (partition by four order by ten/4 rows between unbounded preceding and current row),
765735
last(ten/4) over (partition by four order by ten/4 rows between unbounded preceding and current row)
766736
FROM (select distinct ten, four from tenk1) ss
767-
-- !query 44 schema
737+
-- !query 43 schema
768738
struct<four:int,two:int,sum((ten div 4)) OVER (PARTITION BY four ORDER BY (ten div 4) ASC NULLS FIRST ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW):bigint,last((ten div 4), false) OVER (PARTITION BY four ORDER BY (ten div 4) ASC NULLS FIRST ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW):int>
769-
-- !query 44 output
739+
-- !query 43 output
770740
0 0 0 0
771741
0 0 0 0
772742
0 1 1 1
@@ -789,13 +759,13 @@ struct<four:int,two:int,sum((ten div 4)) OVER (PARTITION BY four ORDER BY (ten d
789759
3 2 4 2
790760

791761

792-
-- !query 45
762+
-- !query 44
793763
SELECT sum(unique1) over (order by four range between current row and unbounded following),
794764
unique1, four
795765
FROM tenk1 WHERE unique1 < 10
796-
-- !query 45 schema
766+
-- !query 44 schema
797767
struct<sum(unique1) OVER (ORDER BY four ASC NULLS FIRST RANGE BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING):bigint,unique1:int,four:int>
798-
-- !query 45 output
768+
-- !query 44 output
799769
10 3 3
800770
10 7 3
801771
18 2 2
@@ -808,13 +778,13 @@ struct<sum(unique1) OVER (ORDER BY four ASC NULLS FIRST RANGE BETWEEN CURRENT RO
808778
45 8 0
809779

810780

811-
-- !query 46
781+
-- !query 45
812782
SELECT sum(unique1) over (rows between current row and unbounded following),
813783
unique1, four
814784
FROM tenk1 WHERE unique1 < 10
815-
-- !query 46 schema
785+
-- !query 45 schema
816786
struct<sum(unique1) OVER (ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING):bigint,unique1:int,four:int>
817-
-- !query 46 output
787+
-- !query 45 output
818788
0 0 0
819789
10 3 3
820790
15 5 1
@@ -827,13 +797,13 @@ struct<sum(unique1) OVER (ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING):bigi
827797
7 7 3
828798

829799

830-
-- !query 47
800+
-- !query 46
831801
SELECT sum(unique1) over (rows between 2 preceding and 2 following),
832802
unique1, four
833803
FROM tenk1 WHERE unique1 < 10
834-
-- !query 47 schema
804+
-- !query 46 schema
835805
struct<sum(unique1) OVER (ROWS BETWEEN 2 PRECEDING AND 2 FOLLOWING):bigint,unique1:int,four:int>
836-
-- !query 47 output
806+
-- !query 46 output
837807
10 0 0
838808
13 2 2
839809
15 7 3
@@ -846,13 +816,13 @@ struct<sum(unique1) OVER (ROWS BETWEEN 2 PRECEDING AND 2 FOLLOWING):bigint,uniqu
846816
7 4 0
847817

848818

849-
-- !query 48
819+
-- !query 47
850820
SELECT sum(unique1) over (rows between 2 preceding and 1 preceding),
851821
unique1, four
852822
FROM tenk1 WHERE unique1 < 10
853-
-- !query 48 schema
823+
-- !query 47 schema
854824
struct<sum(unique1) OVER (ROWS BETWEEN 2 PRECEDING AND 1 PRECEDING):bigint,unique1:int,four:int>
855-
-- !query 48 output
825+
-- !query 47 output
856826
10 0 0
857827
13 3 3
858828
15 8 0
@@ -865,13 +835,13 @@ struct<sum(unique1) OVER (ROWS BETWEEN 2 PRECEDING AND 1 PRECEDING):bigint,uniqu
865835
NULL 4 0
866836

867837

868-
-- !query 49
838+
-- !query 48
869839
SELECT sum(unique1) over (rows between 1 following and 3 following),
870840
unique1, four
871841
FROM tenk1 WHERE unique1 < 10
872-
-- !query 49 schema
842+
-- !query 48 schema
873843
struct<sum(unique1) OVER (ROWS BETWEEN 1 FOLLOWING AND 3 FOLLOWING):bigint,unique1:int,four:int>
874-
-- !query 49 output
844+
-- !query 48 output
875845
0 7 3
876846
10 5 1
877847
15 8 0
@@ -884,13 +854,13 @@ struct<sum(unique1) OVER (ROWS BETWEEN 1 FOLLOWING AND 3 FOLLOWING):bigint,uniqu
884854
NULL 0 0
885855

886856

887-
-- !query 50
857+
-- !query 49
888858
SELECT sum(unique1) over (rows between unbounded preceding and 1 following),
889859
unique1, four
890860
FROM tenk1 WHERE unique1 < 10
891-
-- !query 50 schema
861+
-- !query 49 schema
892862
struct<sum(unique1) OVER (ROWS BETWEEN UNBOUNDED PRECEDING AND 1 FOLLOWING):bigint,unique1:int,four:int>
893-
-- !query 50 output
863+
-- !query 49 output
894864
13 1 1
895865
22 6 2
896866
30 9 1
@@ -903,21 +873,21 @@ struct<sum(unique1) OVER (ROWS BETWEEN UNBOUNDED PRECEDING AND 1 FOLLOWING):bigi
903873
7 2 2
904874

905875

906-
-- !query 51
876+
-- !query 50
907877
CREATE TEMP VIEW v_window AS
908878
SELECT i.id, sum(i.id) over (order by i.id rows between 1 preceding and 1 following) as sum_rows
909879
FROM range(1, 11) i
910-
-- !query 51 schema
880+
-- !query 50 schema
911881
struct<>
912-
-- !query 51 output
882+
-- !query 50 output
913883

914884

915885

916-
-- !query 52
886+
-- !query 51
917887
SELECT * FROM v_window
918-
-- !query 52 schema
888+
-- !query 51 schema
919889
struct<id:bigint,sum_rows:bigint>
920-
-- !query 52 output
890+
-- !query 51 output
921891
1 3
922892
10 19
923893
2 6
@@ -930,33 +900,33 @@ struct<id:bigint,sum_rows:bigint>
930900
9 27
931901

932902

933-
-- !query 53
903+
-- !query 52
934904
DROP VIEW v_window
905+
-- !query 52 schema
906+
struct<>
907+
-- !query 52 output
908+
909+
910+
911+
-- !query 53
912+
DROP TABLE empsalary
935913
-- !query 53 schema
936914
struct<>
937915
-- !query 53 output
938916

939917

940918

941919
-- !query 54
942-
DROP TABLE empsalary
920+
DROP VIEW tenk2
943921
-- !query 54 schema
944922
struct<>
945923
-- !query 54 output
946924

947925

948926

949927
-- !query 55
950-
DROP VIEW tenk2
928+
DROP VIEW int4_tbl
951929
-- !query 55 schema
952930
struct<>
953931
-- !query 55 output
954932

955-
956-
957-
-- !query 56
958-
DROP VIEW int4_tbl
959-
-- !query 56 schema
960-
struct<>
961-
-- !query 56 output
962-

0 commit comments

Comments
 (0)