Github user tianyi commented on the pull request:
https://github.com/apache/spark/pull/2542#issuecomment-58614531
@marmbrus I met a problem when I write the test case:
```
createQueryTest("test ambiguousReferences resolved as hive",
"""
|CREATE TABLE t1 (x int);
|CREATE TABLE t2 (a STRUCT<x:string>, x int);
|INSERT OVERWRITE TABLE t1 SELECT 1 FROM src LIMIT 1;
|INSERT OVERWRITE TABLE t2 SELECT named_struct("x","str"),1 FROM src
LIMIT 1;
|SELECT a.x FROM t1 a JOIN t2 b ON a.x = b.k;
""".stripMargin)
```
Then I found spark-sql not support `SELECT named_struct`
Do you have any other way to insert data to table `t2` in spark-sql?
---
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]