You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (Jira)" <ji...@apache.org> on 2019/10/08 05:45:09 UTC

[jira] [Resolved] (SPARK-23058) Show create table can't show non printable field delim

     [ https://issues.apache.org/jira/browse/SPARK-23058?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hyukjin Kwon resolved SPARK-23058.
----------------------------------
    Resolution: Incomplete

> Show create table can't show non printable field delim
> ------------------------------------------------------
>
>                 Key: SPARK-23058
>                 URL: https://issues.apache.org/jira/browse/SPARK-23058
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 2.3.0
>            Reporter: Yuming Wang
>            Priority: Major
>              Labels: bulk-closed
>
> # create table t1:
> {code:sql}
> CREATE EXTERNAL TABLE `t1`(`col1` bigint)
> ROW FORMAT SERDE 'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe'
> WITH SERDEPROPERTIES (
>   'field.delim' = '\177',
>   'serialization.format' = '\003'
> )
> STORED AS
>   INPUTFORMAT 'org.apache.hadoop.mapred.SequenceFileInputFormat'
>   OUTPUTFORMAT 'org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat'
> LOCATION 'file:/tmp/t1';
> {code}
> # show create table t1:
> {code:java}
> spark-sql> show create table t1;
> CREATE EXTERNAL TABLE `t1`(`col1` bigint)
> ROW FORMAT SERDE 'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe'
> WITH SERDEPROPERTIES (
>   'field.delim' = '',
>   'serialization.format' = ''
> )
> STORED AS
>   INPUTFORMAT 'org.apache.hadoop.mapred.SequenceFileInputFormat'
>   OUTPUTFORMAT 'org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat'
> LOCATION 'file:/tmp/t1'
> TBLPROPERTIES (
>   'transient_lastDdlTime' = '1515766958'
> )
> {code}
>  {{'\177'}} and {{'\003'}} didn't correct show.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org