Github user liancheng commented on a diff in the pull request:
https://github.com/apache/spark/pull/10757#discussion_r51201446
--- Diff:
sql/hive/src/test/scala/org/apache/spark/sql/hive/orc/OrcSourceSuite.scala ---
@@ -131,17 +131,17 @@ abstract class OrcSuite extends QueryTest with
TestHiveSingleton with BeforeAndA
val df = sql(
"""
|SELECT
- | CAST(null as TINYINT),
- | CAST(null as SMALLINT),
- | CAST(null as INT),
- | CAST(null as BIGINT),
- | CAST(null as FLOAT),
- | CAST(null as DOUBLE),
- | CAST(null as DECIMAL(7,2)),
- | CAST(null as TIMESTAMP),
- | CAST(null as DATE),
- | CAST(null as STRING),
- | CAST(null as VARCHAR(10))
+ | CAST(null as TINYINT) as c0,
+ | CAST(null as SMALLINT) as c1,
+ | CAST(null as INT) as c2,
+ | CAST(null as BIGINT) as c3,
+ | CAST(null as FLOAT) as c4,
+ | CAST(null as DOUBLE) as c5,
+ | CAST(null as DECIMAL(7,2)) as c6,
+ | CAST(null as TIMESTAMP) as c7,
+ | CAST(null as DATE) as c8,
+ | CAST(null as STRING) as c9,
+ | CAST(null as VARCHAR(10)) as c10
--- End diff --
Aliases are added mostly for the last two fields: `VARCHAR` is equivalent
to `STRING` for Spark SQL, so the last two fields actually have exactly the
same column names.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]