Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,3 @@
## PySpark 3.5.5 Result: {'bit_count(0)': 0, 'typeof(bit_count(0))': 'int', 'typeof(0)': 'int'}
#query
#SELECT bit_count(0::int);

Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,3 @@
## PySpark 3.5.5 Result: {'bit_get(11, 2)': 0, 'typeof(bit_get(11, 2))': 'tinyint', 'typeof(11)': 'int', 'typeof(2)': 'int'}
#query
#SELECT bit_get(11::int, 2::int);

Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,3 @@
## PySpark 3.5.5 Result: {'getbit(11, 2)': 0, 'typeof(getbit(11, 2))': 'tinyint', 'typeof(11)': 'int', 'typeof(2)': 'int'}
#query
#SELECT getbit(11::int, 2::int);

Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,3 @@
## PySpark 3.5.5 Result: {'shiftright(4, 1)': 2, 'typeof(shiftright(4, 1))': 'int', 'typeof(4)': 'int', 'typeof(1)': 'int'}
#query
#SELECT shiftright(4::int, 1::int);

Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,3 @@
## PySpark 3.5.5 Result: {'shiftrightunsigned(4, 1)': 2, 'typeof(shiftrightunsigned(4, 1))': 'int', 'typeof(4)': 'int', 'typeof(1)': 'int'}
#query
#SELECT shiftrightunsigned(4::int, 1::int);

Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,3 @@
## PySpark 3.5.5 Result: {'concat(Spark, SQL)': 'SparkSQL', 'typeof(concat(Spark, SQL))': 'string', 'typeof(Spark)': 'string', 'typeof(SQL)': 'string'}
#query
#SELECT concat('Spark'::string, 'SQL'::string);

Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,3 @@
## PySpark 3.5.5 Result: {'reverse(Spark SQL)': 'LQS krapS', 'typeof(reverse(Spark SQL))': 'string', 'typeof(Spark SQL)': 'string'}
#query
#SELECT reverse('Spark SQL'::string);

Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,3 @@
## PySpark 3.5.5 Result: {'coalesce(NULL, 1, NULL)': 1, 'typeof(coalesce(NULL, 1, NULL))': 'int', 'typeof(NULL)': 'void', 'typeof(1)': 'int'}
#query
#SELECT coalesce(NULL::void, 1::int);

Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,3 @@
## PySpark 3.5.5 Result: {'(IF((1 < 2), a, b))': 'a', 'typeof((IF((1 < 2), a, b)))': 'string', 'typeof((1 < 2))': 'boolean', 'typeof(a)': 'string', 'typeof(b)': 'string'}
#query
#SELECT if((1 < 2)::boolean, 'a'::string, 'b'::string);

Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,3 @@
## PySpark 3.5.5 Result: {'nullif(2, 2)': None, 'typeof(nullif(2, 2))': 'int', 'typeof(2)': 'int'}
#query
#SELECT nullif(2::int);

Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,3 @@
## PySpark 3.5.5 Result: {'nvl2(NULL, 2, 1)': 1, 'typeof(nvl2(NULL, 2, 1))': 'int', 'typeof(NULL)': 'void', 'typeof(2)': 'int', 'typeof(1)': 'int'}
#query
#SELECT nvl2(NULL::void, 2::int, 1::int);

Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,3 @@
## PySpark 3.5.5 Result: {'schema_of_csv(1,abc)': 'STRUCT<_c0: INT, _c1: STRING>', 'typeof(schema_of_csv(1,abc))': 'string', 'typeof(1,abc)': 'string'}
#query
#SELECT schema_of_csv('1,abc'::string);

Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,3 @@
## PySpark 3.5.5 Result: {'add_months(2016-08-31, 1)': datetime.date(2016, 9, 30), 'typeof(add_months(2016-08-31, 1))': 'date', 'typeof(2016-08-31)': 'string', 'typeof(1)': 'int'}
#query
#SELECT add_months('2016-08-31'::string, 1::int);

Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,3 @@
## PySpark 3.5.5 Result: {"convert_timezone(current_timezone(), Europe/Brussels, TIMESTAMP_NTZ '2021-12-05 15:00:00')": datetime.datetime(2021, 12, 6, 0, 0), "typeof(convert_timezone(current_timezone(), Europe/Brussels, TIMESTAMP_NTZ '2021-12-05 15:00:00'))": 'timestamp_ntz', 'typeof(Europe/Brussels)': 'string', "typeof(TIMESTAMP_NTZ '2021-12-05 15:00:00')": 'timestamp_ntz'}
#query
#SELECT convert_timezone('Europe/Brussels'::string, TIMESTAMP_NTZ '2021-12-05 15:00:00'::timestamp_ntz);

Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,3 @@
## PySpark 3.5.5 Result: {'current_date()': datetime.date(2025, 6, 14), 'typeof(current_date())': 'date'}
#query
#SELECT curdate();

Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,3 @@
## PySpark 3.5.5 Result: {'current_date()': datetime.date(2025, 6, 14), 'typeof(current_date())': 'date'}
#query
#SELECT current_date();

Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,3 @@
## PySpark 3.5.5 Result: {'current_timestamp()': datetime.datetime(2025, 6, 14, 23, 57, 38, 948981), 'typeof(current_timestamp())': 'timestamp'}
#query
#SELECT current_timestamp();

Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,3 @@
## PySpark 3.5.5 Result: {'current_timezone()': 'America/Los_Angeles', 'typeof(current_timezone())': 'string'}
#query
#SELECT current_timezone();

Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,3 @@
## PySpark 3.5.5 Result: {'date_add(2016-07-30, 1)': datetime.date(2016, 7, 31), 'typeof(date_add(2016-07-30, 1))': 'date', 'typeof(2016-07-30)': 'string', 'typeof(1)': 'int'}
#query
#SELECT date_add('2016-07-30'::string, 1::int);

Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,3 @@
## PySpark 3.5.5 Result: {'date_diff(2009-07-31, 2009-07-30)': 1, 'typeof(date_diff(2009-07-31, 2009-07-30))': 'int', 'typeof(2009-07-31)': 'string', 'typeof(2009-07-30)': 'string'}
#query
#SELECT date_diff('2009-07-31'::string, '2009-07-30'::string);

Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,3 @@
## PySpark 3.5.5 Result: {'date_format(2016-04-08, y)': '2016', 'typeof(date_format(2016-04-08, y))': 'string', 'typeof(2016-04-08)': 'string', 'typeof(y)': 'string'}
#query
#SELECT date_format('2016-04-08'::string, 'y'::string);

Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,3 @@
## PySpark 3.5.5 Result: {"date_part(week, TIMESTAMP '2019-08-12 01:00:00.123456')": 33, "typeof(date_part(week, TIMESTAMP '2019-08-12 01:00:00.123456'))": 'int', 'typeof(week)': 'string', "typeof(TIMESTAMP '2019-08-12 01:00:00.123456')": 'timestamp'}
#query
#SELECT date_part('week'::string, TIMESTAMP '2019-08-12 01:00:00.123456'::timestamp);

Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,3 @@
## PySpark 3.5.5 Result: {'date_sub(2016-07-30, 1)': datetime.date(2016, 7, 29), 'typeof(date_sub(2016-07-30, 1))': 'date', 'typeof(2016-07-30)': 'string', 'typeof(1)': 'int'}
#query
#SELECT date_sub('2016-07-30'::string, 1::int);

Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,3 @@
## PySpark 3.5.5 Result: {'date_trunc(YEAR, 2015-03-05T09:32:05.359)': datetime.datetime(2015, 1, 1, 0, 0), 'typeof(date_trunc(YEAR, 2015-03-05T09:32:05.359))': 'timestamp', 'typeof(YEAR)': 'string', 'typeof(2015-03-05T09:32:05.359)': 'string'}
#query
#SELECT date_trunc('YEAR'::string, '2015-03-05T09:32:05.359'::string);

Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,3 @@
## PySpark 3.5.5 Result: {'date_add(2016-07-30, 1)': datetime.date(2016, 7, 31), 'typeof(date_add(2016-07-30, 1))': 'date', 'typeof(2016-07-30)': 'string', 'typeof(1)': 'int'}
#query
#SELECT dateadd('2016-07-30'::string, 1::int);

Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,3 @@
## PySpark 3.5.5 Result: {'datediff(2009-07-31, 2009-07-30)': 1, 'typeof(datediff(2009-07-31, 2009-07-30))': 'int', 'typeof(2009-07-31)': 'string', 'typeof(2009-07-30)': 'string'}
#query
#SELECT datediff('2009-07-31'::string, '2009-07-30'::string);

Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,3 @@
## PySpark 3.5.5 Result: {"datepart(week FROM TIMESTAMP '2019-08-12 01:00:00.123456')": 33, "typeof(datepart(week FROM TIMESTAMP '2019-08-12 01:00:00.123456'))": 'int', 'typeof(week)': 'string', "typeof(TIMESTAMP '2019-08-12 01:00:00.123456')": 'timestamp'}
#query
#SELECT datepart('week'::string, TIMESTAMP '2019-08-12 01:00:00.123456'::timestamp);

1 change: 0 additions & 1 deletion datafusion/sqllogictest/test_files/spark/datetime/day.slt
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,3 @@
## PySpark 3.5.5 Result: {'day(2009-07-30)': 30, 'typeof(day(2009-07-30))': 'int', 'typeof(2009-07-30)': 'string'}
#query
#SELECT day('2009-07-30'::string);

Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,3 @@
## PySpark 3.5.5 Result: {'dayofmonth(2009-07-30)': 30, 'typeof(dayofmonth(2009-07-30))': 'int', 'typeof(2009-07-30)': 'string'}
#query
#SELECT dayofmonth('2009-07-30'::string);

Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,3 @@
## PySpark 3.5.5 Result: {'dayofweek(2009-07-30)': 5, 'typeof(dayofweek(2009-07-30))': 'int', 'typeof(2009-07-30)': 'string'}
#query
#SELECT dayofweek('2009-07-30'::string);

Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,3 @@
## PySpark 3.5.5 Result: {'dayofyear(2016-04-09)': 100, 'typeof(dayofyear(2016-04-09))': 'int', 'typeof(2016-04-09)': 'string'}
#query
#SELECT dayofyear('2016-04-09'::string);

1 change: 0 additions & 1 deletion datafusion/sqllogictest/test_files/spark/datetime/hour.slt
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,3 @@
## PySpark 3.5.5 Result: {'hour(2009-07-30 12:58:59)': 12, 'typeof(hour(2009-07-30 12:58:59))': 'int', 'typeof(2009-07-30 12:58:59)': 'string'}
#query
#SELECT hour('2009-07-30 12:58:59'::string);

Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,3 @@
## PySpark 3.5.5 Result: {'last_day(2009-01-12)': datetime.date(2009, 1, 31), 'typeof(last_day(2009-01-12))': 'date', 'typeof(2009-01-12)': 'string'}
#query
#SELECT last_day('2009-01-12'::string);

Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,3 @@
## PySpark 3.5.5 Result: {'localtimestamp()': datetime.datetime(2025, 6, 14, 23, 57, 39, 529742), 'typeof(localtimestamp())': 'timestamp_ntz'}
#query
#SELECT localtimestamp();

Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,3 @@
## PySpark 3.5.5 Result: {'make_date(2019, 7, NULL)': None, 'typeof(make_date(2019, 7, NULL))': 'date', 'typeof(2019)': 'int', 'typeof(7)': 'int', 'typeof(NULL)': 'void'}
#query
#SELECT make_date(2019::int, 7::int, NULL::void);

Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,3 @@
## PySpark 3.5.5 Result: {'make_dt_interval(2, 0, 0, 0.000000)': datetime.timedelta(days=2), 'typeof(make_dt_interval(2, 0, 0, 0.000000))': 'interval day to second', 'typeof(2)': 'int'}
#query
#SELECT make_dt_interval(2::int);

Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,3 @@
## PySpark 3.5.5 Result: {'make_timestamp(NULL, 7, 22, 15, 30, 0)': None, 'typeof(make_timestamp(NULL, 7, 22, 15, 30, 0))': 'timestamp', 'typeof(NULL)': 'void', 'typeof(7)': 'int', 'typeof(22)': 'int', 'typeof(15)': 'int', 'typeof(30)': 'int', 'typeof(0)': 'int'}
#query
#SELECT make_timestamp(NULL::void, 7::int, 22::int, 15::int, 30::int, 0::int);

Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,3 @@
## PySpark 3.5.5 Result: {'make_timestamp_ltz(NULL, 7, 22, 15, 30, 0)': None, 'typeof(make_timestamp_ltz(NULL, 7, 22, 15, 30, 0))': 'timestamp', 'typeof(NULL)': 'void', 'typeof(7)': 'int', 'typeof(22)': 'int', 'typeof(15)': 'int', 'typeof(30)': 'int', 'typeof(0)': 'int'}
#query
#SELECT make_timestamp_ltz(NULL::void, 7::int, 22::int, 15::int, 30::int, 0::int);

Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,3 @@
## PySpark 3.5.5 Result: {'make_timestamp_ntz(NULL, 7, 22, 15, 30, 0)': None, 'typeof(make_timestamp_ntz(NULL, 7, 22, 15, 30, 0))': 'timestamp_ntz', 'typeof(NULL)': 'void', 'typeof(7)': 'int', 'typeof(22)': 'int', 'typeof(15)': 'int', 'typeof(30)': 'int', 'typeof(0)': 'int'}
#query
#SELECT make_timestamp_ntz(NULL::void, 7::int, 22::int, 15::int, 30::int, 0::int);

Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,3 @@
## PySpark 3.5.5 Result: {'make_ym_interval(2, 0)': 24, 'typeof(make_ym_interval(2, 0))': 'interval year to month', 'typeof(2)': 'int'}
#query
#SELECT make_ym_interval(2::int);

Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,3 @@
## PySpark 3.5.5 Result: {'minute(2009-07-30 12:58:59)': 58, 'typeof(minute(2009-07-30 12:58:59))': 'int', 'typeof(2009-07-30 12:58:59)': 'string'}
#query
#SELECT minute('2009-07-30 12:58:59'::string);

Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,3 @@
## PySpark 3.5.5 Result: {'month(2016-07-30)': 7, 'typeof(month(2016-07-30))': 'int', 'typeof(2016-07-30)': 'string'}
#query
#SELECT month('2016-07-30'::string);

Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,3 @@
## PySpark 3.5.5 Result: {'months_between(1997-02-28 10:30:00, 1996-10-30, false)': 3.9495967741935485, 'typeof(months_between(1997-02-28 10:30:00, 1996-10-30, false))': 'double', 'typeof(1997-02-28 10:30:00)': 'string', 'typeof(1996-10-30)': 'string', 'typeof(false)': 'boolean'}
#query
#SELECT months_between('1997-02-28 10:30:00'::string, '1996-10-30'::string, false::boolean);

Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,3 @@
## PySpark 3.5.5 Result: {'next_day(2015-01-14, TU)': datetime.date(2015, 1, 20), 'typeof(next_day(2015-01-14, TU))': 'date', 'typeof(2015-01-14)': 'string', 'typeof(TU)': 'string'}
#query
#SELECT next_day('2015-01-14'::string, 'TU'::string);

1 change: 0 additions & 1 deletion datafusion/sqllogictest/test_files/spark/datetime/now.slt
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,3 @@
## PySpark 3.5.5 Result: {'now()': datetime.datetime(2025, 6, 14, 23, 57, 39, 982956), 'typeof(now())': 'timestamp'}
#query
#SELECT now();

Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,3 @@
## PySpark 3.5.5 Result: {'quarter(2016-08-31)': 3, 'typeof(quarter(2016-08-31))': 'int', 'typeof(2016-08-31)': 'string'}
#query
#SELECT quarter('2016-08-31'::string);

Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,3 @@
## PySpark 3.5.5 Result: {'second(2009-07-30 12:58:59)': 59, 'typeof(second(2009-07-30 12:58:59))': 'int', 'typeof(2009-07-30 12:58:59)': 'string'}
#query
#SELECT second('2009-07-30 12:58:59'::string);

Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,3 @@
## PySpark 3.5.5 Result: {'timestamp_micros(1230219000123123)': datetime.datetime(2008, 12, 25, 7, 30, 0, 123123), 'typeof(timestamp_micros(1230219000123123))': 'timestamp', 'typeof(1230219000123123)': 'bigint'}
#query
#SELECT timestamp_micros(1230219000123123::bigint);

Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,3 @@
## PySpark 3.5.5 Result: {'timestamp_millis(1230219000123)': datetime.datetime(2008, 12, 25, 7, 30, 0, 123000), 'typeof(timestamp_millis(1230219000123))': 'timestamp', 'typeof(1230219000123)': 'bigint'}
#query
#SELECT timestamp_millis(1230219000123::bigint);

Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,3 @@
## PySpark 3.5.5 Result: {'timestamp_seconds(1230219000.123)': datetime.datetime(2008, 12, 25, 7, 30, 0, 123000), 'typeof(timestamp_seconds(1230219000.123))': 'timestamp', 'typeof(1230219000.123)': 'decimal(13,3)'}
#query
#SELECT timestamp_seconds(1230219000.123::decimal(13,3));

Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,3 @@
## PySpark 3.5.5 Result: {'to_date(2016-12-31, yyyy-MM-dd)': datetime.date(2016, 12, 31), 'typeof(to_date(2016-12-31, yyyy-MM-dd))': 'date', 'typeof(2016-12-31)': 'string', 'typeof(yyyy-MM-dd)': 'string'}
#query
#SELECT to_date('2016-12-31'::string, 'yyyy-MM-dd'::string);

Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,3 @@
## PySpark 3.5.5 Result: {'to_timestamp(2016-12-31, yyyy-MM-dd)': datetime.datetime(2016, 12, 31, 0, 0), 'typeof(to_timestamp(2016-12-31, yyyy-MM-dd))': 'timestamp', 'typeof(2016-12-31)': 'string', 'typeof(yyyy-MM-dd)': 'string'}
#query
#SELECT to_timestamp('2016-12-31'::string, 'yyyy-MM-dd'::string);

Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,3 @@
## PySpark 3.5.5 Result: {'to_timestamp_ltz(2016-12-31, yyyy-MM-dd)': datetime.datetime(2016, 12, 31, 0, 0), 'typeof(to_timestamp_ltz(2016-12-31, yyyy-MM-dd))': 'timestamp', 'typeof(2016-12-31)': 'string', 'typeof(yyyy-MM-dd)': 'string'}
#query
#SELECT to_timestamp_ltz('2016-12-31'::string, 'yyyy-MM-dd'::string);

Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,3 @@
## PySpark 3.5.5 Result: {'to_timestamp_ntz(2016-12-31, yyyy-MM-dd)': datetime.datetime(2016, 12, 31, 0, 0), 'typeof(to_timestamp_ntz(2016-12-31, yyyy-MM-dd))': 'timestamp_ntz', 'typeof(2016-12-31)': 'string', 'typeof(yyyy-MM-dd)': 'string'}
#query
#SELECT to_timestamp_ntz('2016-12-31'::string, 'yyyy-MM-dd'::string);

Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,3 @@
## PySpark 3.5.5 Result: {'to_unix_timestamp(2016-04-08, yyyy-MM-dd)': 1460098800, 'typeof(to_unix_timestamp(2016-04-08, yyyy-MM-dd))': 'bigint', 'typeof(2016-04-08)': 'string', 'typeof(yyyy-MM-dd)': 'string'}
#query
#SELECT to_unix_timestamp('2016-04-08'::string, 'yyyy-MM-dd'::string);

Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,3 @@
## PySpark 3.5.5 Result: {'to_utc_timestamp(2016-08-31, Asia/Seoul)': datetime.datetime(2016, 8, 30, 15, 0), 'typeof(to_utc_timestamp(2016-08-31, Asia/Seoul))': 'timestamp', 'typeof(2016-08-31)': 'string', 'typeof(Asia/Seoul)': 'string'}
#query
#SELECT to_utc_timestamp('2016-08-31'::string, 'Asia/Seoul'::string);

Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,3 @@
## PySpark 3.5.5 Result: {'trunc(2019-08-04, week)': datetime.date(2019, 7, 29), 'typeof(trunc(2019-08-04, week))': 'date', 'typeof(2019-08-04)': 'string', 'typeof(week)': 'string'}
#query
#SELECT trunc('2019-08-04'::string, 'week'::string);

Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,3 @@
## PySpark 3.5.5 Result: {'try_to_timestamp(foo, yyyy-MM-dd)': None, 'typeof(try_to_timestamp(foo, yyyy-MM-dd))': 'timestamp', 'typeof(foo)': 'string', 'typeof(yyyy-MM-dd)': 'string'}
#query
#SELECT try_to_timestamp('foo'::string, 'yyyy-MM-dd'::string);

Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,3 @@
## PySpark 3.5.5 Result: {'unix_timestamp(current_timestamp(), yyyy-MM-dd HH:mm:ss)': 1749970660, 'typeof(unix_timestamp(current_timestamp(), yyyy-MM-dd HH:mm:ss))': 'bigint'}
#query
#SELECT unix_timestamp();

Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,3 @@
## PySpark 3.5.5 Result: {'weekday(2009-07-30)': 3, 'typeof(weekday(2009-07-30))': 'int', 'typeof(2009-07-30)': 'string'}
#query
#SELECT weekday('2009-07-30'::string);

Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,3 @@
## PySpark 3.5.5 Result: {'weekofyear(2008-02-20)': 8, 'typeof(weekofyear(2008-02-20))': 'int', 'typeof(2008-02-20)': 'string'}
#query
#SELECT weekofyear('2008-02-20'::string);

1 change: 0 additions & 1 deletion datafusion/sqllogictest/test_files/spark/datetime/year.slt
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,3 @@
## PySpark 3.5.5 Result: {'year(2016-07-30)': 2016, 'typeof(year(2016-07-30))': 'int', 'typeof(2016-07-30)': 'string'}
#query
#SELECT year('2016-07-30'::string);

1 change: 0 additions & 1 deletion datafusion/sqllogictest/test_files/spark/hash/crc32.slt
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,3 @@
## PySpark 3.5.5 Result: {'crc32(Spark)': 1557323817, 'typeof(crc32(Spark))': 'bigint', 'typeof(Spark)': 'string'}
#query
#SELECT crc32('Spark'::string);

1 change: 0 additions & 1 deletion datafusion/sqllogictest/test_files/spark/hash/md5.slt
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,3 @@
## PySpark 3.5.5 Result: {'md5(Spark)': '8cde774d6f7333752ed72cacddb05126', 'typeof(md5(Spark))': 'string', 'typeof(Spark)': 'string'}
#query
#SELECT md5('Spark'::string);

1 change: 0 additions & 1 deletion datafusion/sqllogictest/test_files/spark/hash/sha.slt
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,3 @@
## PySpark 3.5.5 Result: {'sha(Spark)': '85f5955f4b27a9a4c2aab6ffe5d7189fc298b92c', 'typeof(sha(Spark))': 'string', 'typeof(Spark)': 'string'}
#query
#SELECT sha('Spark'::string);

1 change: 0 additions & 1 deletion datafusion/sqllogictest/test_files/spark/hash/sha1.slt
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,3 @@
## PySpark 3.5.5 Result: {'sha1(Spark)': '85f5955f4b27a9a4c2aab6ffe5d7189fc298b92c', 'typeof(sha1(Spark))': 'string', 'typeof(Spark)': 'string'}
#query
#SELECT sha1('Spark'::string);

Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,3 @@
## PySpark 3.5.5 Result: {'get_json_object({"a":"b"}, $.a)': 'b', 'typeof(get_json_object({"a":"b"}, $.a))': 'string', 'typeof({"a":"b"})': 'string', 'typeof($.a)': 'string'}
#query
#SELECT get_json_object('{"a":"b"}'::string, '$.a'::string);

Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,3 @@
## PySpark 3.5.5 Result: {'json_object_keys({})': [], 'typeof(json_object_keys({}))': 'array<string>', 'typeof({})': 'string'}
#query
#SELECT json_object_keys('{}'::string);

1 change: 0 additions & 1 deletion datafusion/sqllogictest/test_files/spark/math/abs.slt
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,3 @@
## PySpark 3.5.5 Result: {"abs(INTERVAL '-1-1' YEAR TO MONTH)": 13, "typeof(abs(INTERVAL '-1-1' YEAR TO MONTH))": 'interval year to month', "typeof(INTERVAL '-1-1' YEAR TO MONTH)": 'interval year to month'}
#query
#SELECT abs(INTERVAL '-1-1' YEAR TO MONTH::interval year to month);

1 change: 0 additions & 1 deletion datafusion/sqllogictest/test_files/spark/math/acos.slt
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,3 @@
## PySpark 3.5.5 Result: {'ACOS(2)': nan, 'typeof(ACOS(2))': 'double', 'typeof(2)': 'int'}
#query
#SELECT acos(2::int);

1 change: 0 additions & 1 deletion datafusion/sqllogictest/test_files/spark/math/acosh.slt
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,3 @@
## PySpark 3.5.5 Result: {'ACOSH(1)': 0.0, 'typeof(ACOSH(1))': 'double', 'typeof(1)': 'int'}
#query
#SELECT acosh(1::int);

1 change: 0 additions & 1 deletion datafusion/sqllogictest/test_files/spark/math/asin.slt
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,3 @@
## PySpark 3.5.5 Result: {'ASIN(2)': nan, 'typeof(ASIN(2))': 'double', 'typeof(2)': 'int'}
#query
#SELECT asin(2::int);

1 change: 0 additions & 1 deletion datafusion/sqllogictest/test_files/spark/math/asinh.slt
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,3 @@
## PySpark 3.5.5 Result: {'ASINH(0)': 0.0, 'typeof(ASINH(0))': 'double', 'typeof(0)': 'int'}
#query
#SELECT asinh(0::int);

1 change: 0 additions & 1 deletion datafusion/sqllogictest/test_files/spark/math/atan.slt
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,3 @@
## PySpark 3.5.5 Result: {'ATAN(0)': 0.0, 'typeof(ATAN(0))': 'double', 'typeof(0)': 'int'}
#query
#SELECT atan(0::int);

1 change: 0 additions & 1 deletion datafusion/sqllogictest/test_files/spark/math/atan2.slt
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,3 @@
## PySpark 3.5.5 Result: {'ATAN2(0, 0)': 0.0, 'typeof(ATAN2(0, 0))': 'double', 'typeof(0)': 'int'}
#query
#SELECT atan2(0::int);

1 change: 0 additions & 1 deletion datafusion/sqllogictest/test_files/spark/math/atanh.slt
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,3 @@
## PySpark 3.5.5 Result: {'ATANH(2)': nan, 'typeof(ATANH(2))': 'double', 'typeof(2)': 'int'}
#query
#SELECT atanh(2::int);

1 change: 0 additions & 1 deletion datafusion/sqllogictest/test_files/spark/math/bin.slt
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,3 @@
## PySpark 3.5.5 Result: {'bin(13.3)': '1101', 'typeof(bin(13.3))': 'string', 'typeof(13.3)': 'decimal(3,1)'}
#query
#SELECT bin(13.3::decimal(3,1));

1 change: 0 additions & 1 deletion datafusion/sqllogictest/test_files/spark/math/bround.slt
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,3 @@
## PySpark 3.5.5 Result: {'bround(25, -1)': 20, 'typeof(bround(25, -1))': 'int', 'typeof(25)': 'int', 'typeof(-1)': 'int'}
#query
#SELECT bround(25::int, -1::int);

1 change: 0 additions & 1 deletion datafusion/sqllogictest/test_files/spark/math/cbrt.slt
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,3 @@
## PySpark 3.5.5 Result: {'CBRT(27.0)': 3.0, 'typeof(CBRT(27.0))': 'double', 'typeof(27.0)': 'decimal(3,1)'}
#query
#SELECT cbrt(27.0::decimal(3,1));

1 change: 0 additions & 1 deletion datafusion/sqllogictest/test_files/spark/math/ceil.slt
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,3 @@
## PySpark 3.5.5 Result: {'CEIL(5)': 5, 'typeof(CEIL(5))': 'bigint', 'typeof(5)': 'int'}
#query
#SELECT ceil(5::int);

Loading