You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2018/01/12 14:45:00 UTC

[jira] [Commented] (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:comment-tabpanel&focusedCommentId=16324044#comment-16324044 ] 

Apache Spark commented on SPARK-23058:
--------------------------------------

User 'wangyum' has created a pull request for this issue:
https://github.com/apache/spark/pull/20248

> 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
>
> # 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
(v6.4.14#64029)

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