Skip to content

Commit

Permalink
conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
yaooqinn committed Sep 10, 2020
1 parent d3dc77c commit 3dd80b6
Show file tree
Hide file tree
Showing 3 changed files with 122 additions and 2 deletions.
8 changes: 8 additions & 0 deletions sql/core/src/test/resources/sql-tests/inputs/interval.sql
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,14 @@ SELECT
to_json(map('a', interval 25 month 100 day 130 minute)),
from_json(to_json(map('a', interval 25 month 100 day 130 minute)), 'a interval');

select interval '+';
select interval '+.';
select interval '1';
select interval '1.2';
select interval '- 2';
select interval '1 day -';
select interval '1 day 1';

select interval '1 day 2' day;
select interval 'interval 1' day;
select interval '-\t 1' day;
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
-- Automatically generated by SQLQueryTestSuite
-- Number of queries: 96
-- Number of queries: 103


-- !query
Expand Down Expand Up @@ -958,6 +958,62 @@ struct<from_json({"a":"1 days"}):struct<a:interval>,to_json(from_json({"a":"1 da
{"a":1 days} {"a":"1 days"} {"a":"2 years 1 months 100 days 2 hours 10 minutes"} {"a":2 years 1 months 100 days 2 hours 10 minutes}


-- !query
select interval '+'
-- !query schema
struct<CAST(NULL AS INTERVAL):interval>
-- !query output
NULL


-- !query
select interval '+.'
-- !query schema
struct<CAST(NULL AS INTERVAL):interval>
-- !query output
NULL


-- !query
select interval '1'
-- !query schema
struct<CAST(NULL AS INTERVAL):interval>
-- !query output
NULL


-- !query
select interval '1.2'
-- !query schema
struct<CAST(NULL AS INTERVAL):interval>
-- !query output
NULL


-- !query
select interval '- 2'
-- !query schema
struct<CAST(NULL AS INTERVAL):interval>
-- !query output
NULL


-- !query
select interval '1 day -'
-- !query schema
struct<CAST(NULL AS INTERVAL):interval>
-- !query output
NULL


-- !query
select interval '1 day 1'
-- !query schema
struct<CAST(NULL AS INTERVAL):interval>
-- !query output
NULL


-- !query
select interval '1 day 2' day
-- !query schema
Expand Down
58 changes: 57 additions & 1 deletion sql/core/src/test/resources/sql-tests/results/interval.sql.out
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
-- Automatically generated by SQLQueryTestSuite
-- Number of queries: 96
-- Number of queries: 103


-- !query
Expand Down Expand Up @@ -930,6 +930,62 @@ struct<from_json({"a":"1 days"}):struct<a:interval>,to_json(from_json({"a":"1 da
{"a":1 days} {"a":"1 days"} {"a":"2 years 1 months 100 days 2 hours 10 minutes"} {"a":2 years 1 months 100 days 2 hours 10 minutes}


-- !query
select interval '+'
-- !query schema
struct<CAST(NULL AS INTERVAL):interval>
-- !query output
NULL


-- !query
select interval '+.'
-- !query schema
struct<CAST(NULL AS INTERVAL):interval>
-- !query output
NULL


-- !query
select interval '1'
-- !query schema
struct<CAST(NULL AS INTERVAL):interval>
-- !query output
NULL


-- !query
select interval '1.2'
-- !query schema
struct<CAST(NULL AS INTERVAL):interval>
-- !query output
NULL


-- !query
select interval '- 2'
-- !query schema
struct<CAST(NULL AS INTERVAL):interval>
-- !query output
NULL


-- !query
select interval '1 day -'
-- !query schema
struct<CAST(NULL AS INTERVAL):interval>
-- !query output
NULL


-- !query
select interval '1 day 1'
-- !query schema
struct<CAST(NULL AS INTERVAL):interval>
-- !query output
NULL


-- !query
select interval '1 day 2' day
-- !query schema
Expand Down

0 comments on commit 3dd80b6

Please sign in to comment.