https://github.com/apache/spark
Revision db2974bea86b9f01bde8e2b1507b639adc8b9660 authored by zhangbutao on 18 October 2022, 21:54:39 UTC, committed by Dongjoon Hyun on 18 October 2022, 21:54:59 UTC
### What changes were proposed in this pull request?

After [SPARK-29839](https://issues.apache.org/jira/browse/SPARK-29839), we could create a table with specife based a existing view, but the serde of created is always parquet.
However, if we use USING syntax  ([SPARK-29421](https://issues.apache.org/jira/browse/SPARK-29421)) to create a table with specified serde based a view, we can get the correct serde.

### Why are the changes needed?

We should add specified serde for the created table when using `create table like view stored as` syntax.

### Does this PR introduce _any_ user-facing change?

No

### How was this patch tested?

Unit Test

Closes #38295 from zhangbutao/SPARK-40829.

Authored-by: zhangbutao <zhangbutao@cmss.chinamobile.com>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
(cherry picked from commit 4ad29829bf53fff26172845312b334008bc4cb68)
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
1 parent 3cc2ba9
History
Tip revision: db2974bea86b9f01bde8e2b1507b639adc8b9660 authored by zhangbutao on 18 October 2022, 21:54:39 UTC
[SPARK-40829][SQL] STORED AS serde in CREATE TABLE LIKE view does not work
Tip revision: db2974b

README.md

back to top