aboutsummaryrefslogtreecommitdiff
path: root/sql/core/src/test/resources/sql-tests/results/inline-table.sql.out
diff options
context:
space:
mode:
authorLiang-Chi Hsieh <viirya@gmail.com>2017-03-03 07:14:37 -0800
committerHerman van Hovell <hvanhovell@databricks.com>2017-03-03 07:14:37 -0800
commit98bcc188f98e44c1675d8b3a28f44f4f900abc43 (patch)
treef7340f325fd31749c542ac32974adcd801cfccca /sql/core/src/test/resources/sql-tests/results/inline-table.sql.out
parent776fac3988271a1e4128cb31f21e5f7f3b7bcf0e (diff)
downloadspark-98bcc188f98e44c1675d8b3a28f44f4f900abc43.tar.gz
spark-98bcc188f98e44c1675d8b3a28f44f4f900abc43.tar.bz2
spark-98bcc188f98e44c1675d8b3a28f44f4f900abc43.zip
[SPARK-19758][SQL] Resolving timezone aware expressions with time zone when resolving inline table
## What changes were proposed in this pull request? When we resolve inline tables in analyzer, we will evaluate the expressions of inline tables. When it evaluates a `TimeZoneAwareExpression` expression, an error will happen because the `TimeZoneAwareExpression` is not associated with timezone yet. So we need to resolve these `TimeZoneAwareExpression`s with time zone when resolving inline tables. ## How was this patch tested? Jenkins tests. Please review http://spark.apache.org/contributing.html before opening a pull request. Author: Liang-Chi Hsieh <viirya@gmail.com> Closes #17114 from viirya/resolve-timeawareexpr-inline-table.
Diffstat (limited to 'sql/core/src/test/resources/sql-tests/results/inline-table.sql.out')
-rw-r--r--sql/core/src/test/resources/sql-tests/results/inline-table.sql.out10
1 files changed, 9 insertions, 1 deletions
diff --git a/sql/core/src/test/resources/sql-tests/results/inline-table.sql.out b/sql/core/src/test/resources/sql-tests/results/inline-table.sql.out
index de6f01b8de..4e80f0bda5 100644
--- a/sql/core/src/test/resources/sql-tests/results/inline-table.sql.out
+++ b/sql/core/src/test/resources/sql-tests/results/inline-table.sql.out
@@ -1,5 +1,5 @@
-- Automatically generated by SQLQueryTestSuite
--- Number of queries: 16
+-- Number of queries: 17
-- !query 0
@@ -143,3 +143,11 @@ struct<>
-- !query 15 output
org.apache.spark.sql.AnalysisException
cannot evaluate expression count(1) in inline table definition; line 1 pos 29
+
+
+-- !query 16
+select * from values (timestamp('1991-12-06 00:00:00.0'), array(timestamp('1991-12-06 01:00:00.0'), timestamp('1991-12-06 12:00:00.0'))) as data(a, b)
+-- !query 16 schema
+struct<a:timestamp,b:array<timestamp>>
+-- !query 16 output
+1991-12-06 00:00:00 [1991-12-06 01:00:00.0,1991-12-06 12:00:00.0]