[jira] [Assigned] (SPARK-36552) varchar datatype behave differently on hive table and datasource table

2021-08-21 Thread Hyukjin Kwon (Jira)


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

Hyukjin Kwon reassigned SPARK-36552:


Assignee: Kent Yao

> varchar datatype behave differently on  hive table  and datasource table
> 
>
> Key: SPARK-36552
> URL: https://issues.apache.org/jira/browse/SPARK-36552
> Project: Spark
>  Issue Type: Bug
>  Components: SQL
>Affects Versions: 2.3.1, 3.1.1, 3.1.2
>Reporter: ocean
>Assignee: Kent Yao
>Priority: Major
>
> in spark 3.1.X, when set spark.sql.hive.convertMetastoreOrc=false,and 
> spark.sql.legacy.charVarcharAsString=true.
> Execute the following sql:
> CREATE TABLE t (col varchar(2)) stored as orc;
> INSERT INTO t SELECT 'aaa';
> select * from t;
> result is aa
>  
> But when set spark.sql.hive.convertMetastoreOrc=true,and 
> spark.sql.legacy.charVarcharAsString=true
> alse execute the sql, the result is "aaa"
>  
>  
>  
>  



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

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



[jira] [Assigned] (SPARK-36552) varchar datatype behave differently on hive table and datasource table

2021-08-20 Thread Apache Spark (Jira)


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

Apache Spark reassigned SPARK-36552:


Assignee: (was: Apache Spark)

> varchar datatype behave differently on  hive table  and datasource table
> 
>
> Key: SPARK-36552
> URL: https://issues.apache.org/jira/browse/SPARK-36552
> Project: Spark
>  Issue Type: Bug
>  Components: SQL
>Affects Versions: 2.3.1, 3.1.1, 3.1.2
>Reporter: ocean
>Priority: Major
>
> in spark 3.1.X, when set spark.sql.hive.convertMetastoreOrc=false,and 
> spark.sql.legacy.charVarcharAsString=true.
> Execute the following sql:
> CREATE TABLE t (col varchar(2)) stored as orc;
> INSERT INTO t SELECT 'aaa';
> select * from t;
> result is aa
>  
> But when set spark.sql.hive.convertMetastoreOrc=true,and 
> spark.sql.legacy.charVarcharAsString=true
> alse execute the sql, the result is "aaa"
>  
>  
>  
>  



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

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



[jira] [Assigned] (SPARK-36552) varchar datatype behave differently on hive table and datasource table

2021-08-20 Thread Apache Spark (Jira)


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

Apache Spark reassigned SPARK-36552:


Assignee: Apache Spark

> varchar datatype behave differently on  hive table  and datasource table
> 
>
> Key: SPARK-36552
> URL: https://issues.apache.org/jira/browse/SPARK-36552
> Project: Spark
>  Issue Type: Bug
>  Components: SQL
>Affects Versions: 2.3.1, 3.1.1, 3.1.2
>Reporter: ocean
>Assignee: Apache Spark
>Priority: Major
>
> in spark 3.1.X, when set spark.sql.hive.convertMetastoreOrc=false,and 
> spark.sql.legacy.charVarcharAsString=true.
> Execute the following sql:
> CREATE TABLE t (col varchar(2)) stored as orc;
> INSERT INTO t SELECT 'aaa';
> select * from t;
> result is aa
>  
> But when set spark.sql.hive.convertMetastoreOrc=true,and 
> spark.sql.legacy.charVarcharAsString=true
> alse execute the sql, the result is "aaa"
>  
>  
>  
>  



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

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