You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2020/08/13 02:51:03 UTC

[GitHub] [spark] AngersZhuuuu opened a new pull request #29421: [SPARK-32388][SQL]TRANSFORM when schema less should keep same with hive[

AngersZhuuuu opened a new pull request #29421:
URL: https://github.com/apache/spark/pull/29421


   ### What changes were proposed in this pull request?
   In current Spark script transformation with hive serde mode, in case of schema less, result is different with hive.
   This pr to keep result same with hive script transform  serde.
   
   #### Hive Scrip Transform with serde in schemaless
   ```
   hive> create table t (c0 int, c1 int, c2 int);
   hive> INSERT INTO t VALUES (1, 1, 1);
   hive> INSERT INTO t VALUES (2, 2, 2);
   hive> CREATE VIEW v AS SELECT TRANSFORM(c0, c1, c2) USING 'cat' FROM t;
   
   hive> DESCRIBE v;
   key                 	string              	                    
   value               	string              	                    
   
   hive> SELECT * FROM v;
   1	1	1
   2	2	2
   
   hive> SELECT key FROM v;
   1
   2
   
   hive> SELECT value FROM v;
   1	1
   2	2
   ```
   
   #### Spark script transform with hive serde in schema less.
   ```
   hive> create table t (c0 int, c1 int, c2 int); 
   hive> INSERT INTO t VALUES (1, 1, 1); 
   hive> INSERT INTO t VALUES (2, 2, 2); 
   hive> CREATE VIEW v AS SELECT TRANSFORM(c0, c1, c2) USING 'cat' FROM t; 
   
   hive> SELECT * FROM v; 
   1   1
   2   2
   ```
   
   **No serde mode in hive (ROW FORMATTED DELIMITED)**
   ![image](https://user-images.githubusercontent.com/46485123/90088770-55841e00-dd52-11ea-92dd-7fe52d93f0b3.png)
   
   ### Why are the changes needed?
   Keep same behavior with hive script transform
   
   
   ### Does this PR introduce _any_ user-facing change?
   Before this pr with hive serde script transform 
   ```
   select transform(*) 
   USING 'cat'
   from (
   select 1, 2, 3, 4 
   ) tmp
   
   key     value 
   1         2
   ```
   After 
   ```
   select transform(*) 
   USING 'cat'
   from (
   select 1, 2, 3, 4 
   ) tmp
   
   key     value 
   1         2   3  4
   ```
   ### How was this patch tested?
   UT
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins commented on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-688840257






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins removed a comment on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-677516866


   Merged build finished. Test FAILed.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AngersZhuuuu commented on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AngersZhuuuu commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-716544398


   ping @HyukjinKwon  can merge now.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] HyukjinKwon commented on a change in pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
HyukjinKwon commented on a change in pull request #29421:
URL: https://github.com/apache/spark/pull/29421#discussion_r511684691



##########
File path: sql/core/src/main/scala/org/apache/spark/sql/execution/BaseScriptTransformationExec.scala
##########
@@ -111,15 +111,14 @@ trait BaseScriptTransformationExec extends UnaryExecNode {
               .zip(outputFieldWriters)
               .map { case (data, writer) => writer(data) })
       } else {
-        // In schema less mode, hive default serde will choose first two output column as output
-        // if output column size less then 2, it will throw ArrayIndexOutOfBoundsException.
-        // Here we change spark's behavior same as hive's default serde.
-        // But in hive, TRANSFORM with schema less behavior like origin spark, we will fix this
-        // to keep spark and hive behavior same in SPARK-32388
+        // In schema less mode, hive will choose first two output column as output.
+        // If output column size less then 2, it will return NULL for columns with missing values.
+        // Here we split row string and choose first 2 values, if values's size less then 2,
+        // we pad NULL value until 2 to make behavior same with hive.
         val kvWriter = CatalystTypeConverters.createToCatalystConverter(StringType)
         prevLine: String =>
           new GenericInternalRow(
-            prevLine.split(outputRowFormat).slice(0, 2)
+            prevLine.split(outputRowFormat).slice(0, 2).padTo(2, null)

Review comment:
       @AngersZhuuuu, can you add a configuration to control the legacy behaviour, and add a note to the migration guide since it's arguable to say this is a bug? With that, I think I can leave my sign-off and merge.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins removed a comment on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-716273343


   Merged build finished. Test FAILed.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AngersZhuuuu removed a comment on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AngersZhuuuu removed a comment on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-696595816


   ping @cloud-fan 


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins removed a comment on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-689086309






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] SparkQA commented on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-686184098


   **[Test build #128213 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/128213/testReport)** for PR 29421 at commit [`edec9bb`](https://github.com/apache/spark/commit/edec9bb228e4d25972a5599f6b9e60cb4eddd2c8).
    * This patch passes all tests.
    * This patch merges cleanly.
    * This patch adds no public classes.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins removed a comment on pull request #29421: [SPARK-32388][SQL]TRANSFORM when schema less should keep same with hive[

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-673218501






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] SparkQA commented on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-678917855


   **[Test build #127830 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/127830/testReport)** for PR 29421 at commit [`5f03222`](https://github.com/apache/spark/commit/5f032229ca2c457753622e21e22d92848de24fa6).


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] SparkQA commented on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-679986652


   **[Test build #127888 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/127888/testReport)** for PR 29421 at commit [`5f03222`](https://github.com/apache/spark/commit/5f032229ca2c457753622e21e22d92848de24fa6).


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AngersZhuuuu commented on a change in pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AngersZhuuuu commented on a change in pull request #29421:
URL: https://github.com/apache/spark/pull/29421#discussion_r473828107



##########
File path: sql/hive/src/main/scala/org/apache/spark/sql/hive/execution/HiveScriptTransformationExec.scala
##########
@@ -274,6 +275,14 @@ object HiveScriptIOSchema extends HiveInspectors {
     var propsMap = serdeProps.toMap + (serdeConstants.LIST_COLUMNS -> columns.mkString(","))
     propsMap = propsMap + (serdeConstants.LIST_COLUMN_TYPES -> columnTypesNames)
 
+    if (!propsMap.contains(serdeConstants.SERIALIZATION_LAST_COLUMN_TAKES_REST)) {
+      val schemaProps = AnnotationUtils.getAnnotation(serde.getClass, classOf[SerDeSpec])
+      if (schemaProps != null &&
+        schemaProps.schemaProps().contains(serdeConstants.SERIALIZATION_LAST_COLUMN_TAKES_REST)) {
+        propsMap = propsMap + (serdeConstants.SERIALIZATION_LAST_COLUMN_TAKES_REST -> "true")
+      }
+    }

Review comment:
       > This code to handle the schemaless case is the same with hive?
   
   No, since hive will set serde propertie when build plan,  but keep same behavior




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] SparkQA commented on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-688838613


   **[Test build #128385 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/128385/testReport)** for PR 29421 at commit [`02653a0`](https://github.com/apache/spark/commit/02653a0ea8c1f8ce223576af6532944a5176e2a0).
    * This patch passes all tests.
    * This patch merges cleanly.
    * This patch adds no public classes.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins removed a comment on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-716301727


   Test FAILed.
   Refer to this link for build results (access rights to CI server needed): 
   https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/130253/
   Test FAILed.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] HyukjinKwon commented on a change in pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
HyukjinKwon commented on a change in pull request #29421:
URL: https://github.com/apache/spark/pull/29421#discussion_r511689176



##########
File path: sql/core/src/main/scala/org/apache/spark/sql/execution/BaseScriptTransformationExec.scala
##########
@@ -111,15 +111,14 @@ trait BaseScriptTransformationExec extends UnaryExecNode {
               .zip(outputFieldWriters)
               .map { case (data, writer) => writer(data) })
       } else {
-        // In schema less mode, hive default serde will choose first two output column as output
-        // if output column size less then 2, it will throw ArrayIndexOutOfBoundsException.
-        // Here we change spark's behavior same as hive's default serde.
-        // But in hive, TRANSFORM with schema less behavior like origin spark, we will fix this
-        // to keep spark and hive behavior same in SPARK-32388
+        // In schema less mode, hive will choose first two output column as output.
+        // If output column size less then 2, it will return NULL for columns with missing values.
+        // Here we split row string and choose first 2 values, if values's size less then 2,
+        // we pad NULL value until 2 to make behavior same with hive.
         val kvWriter = CatalystTypeConverters.createToCatalystConverter(StringType)
         prevLine: String =>
           new GenericInternalRow(
-            prevLine.split(outputRowFormat).slice(0, 2)
+            prevLine.split(outputRowFormat).slice(0, 2).padTo(2, null)

Review comment:
       SGMT




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] SparkQA commented on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-688570183


   **[Test build #128369 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/128369/testReport)** for PR 29421 at commit [`02653a0`](https://github.com/apache/spark/commit/02653a0ea8c1f8ce223576af6532944a5176e2a0).


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins commented on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-688665805






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] SparkQA commented on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-678782722


   **[Test build #127809 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/127809/testReport)** for PR 29421 at commit [`bd94071`](https://github.com/apache/spark/commit/bd94071fa4a29e8fd2e02dd46b7a197648e441da).


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] SparkQA commented on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-688664171


   **[Test build #128369 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/128369/testReport)** for PR 29421 at commit [`02653a0`](https://github.com/apache/spark/commit/02653a0ea8c1f8ce223576af6532944a5176e2a0).
    * This patch **fails due to an unknown error code, -9**.
    * This patch merges cleanly.
    * This patch adds no public classes.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AngersZhuuuu commented on a change in pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AngersZhuuuu commented on a change in pull request #29421:
URL: https://github.com/apache/spark/pull/29421#discussion_r475370426



##########
File path: sql/core/src/main/scala/org/apache/spark/sql/execution/SparkSqlParser.scala
##########
@@ -783,7 +783,9 @@ class SparkSqlAstBuilder(conf: SQLConf) extends AstBuilder(conf) {
         // Use default (serde) format.
         val name = conf.getConfString("hive.script.serde",
           "org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe")
-        val props = Seq("field.delim" -> "\t")
+        val props = Seq(
+          "field.delim" -> "\t",
+          "serialization.last.column.takes.rest" -> "true")

Review comment:
       > We don't respect `WITH SERDEPROPERTIES`?
   
   ```
   rowFormat
       : ROW FORMAT SERDE name=STRING (WITH SERDEPROPERTIES props=tablePropertyList)?  #rowFormatSerde
       | ROW FORMAT DELIMITED
         (FIELDS TERMINATED BY fieldsTerminatedBy=STRING (ESCAPED BY escapedBy=STRING)?)?
         (COLLECTION ITEMS TERMINATED BY collectionItemsTerminatedBy=STRING)?
         (MAP KEYS TERMINATED BY keysTerminatedBy=STRING)?
         (LINES TERMINATED BY linesSeparatedBy=STRING)?
         (NULL DEFINED AS nullDefinedAs=STRING)?                                       #rowFormatDelimited
       ;
   ```
   
   `WITH SERDEPROPERTIES` must use with ROW FORMAT SERDE, and here is for case without `ROW FORMAT SERDE` or `ROW FORMAT DELIMITED`




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AngersZhuuuu commented on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AngersZhuuuu commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-677524546


   Hive no serde 
   input column size > 2
   ```
   hive> SELECT TRANSFORM(a, b, c)
       >   ROW FORMAT DELIMITED
       >   FIELDS TERMINATED BY '|'
       >   LINES TERMINATED BY '\n'
       >   NULL DEFINED AS 'NULL'
       > USING 'cat'
       >   ROW FORMAT DELIMITED
       >   FIELDS TERMINATED BY '|'
       >   LINES TERMINATED BY '\n'
       >   NULL DEFINED AS 'NULL'
       > FROM (
       > select 1 as a, 2 as b, 3 as c
       > ) tmp ;
   OK
   1	2
   Time taken: 19.432 seconds, Fetched: 1 row(s)
   ```
   
   input column size = 2
   ```
   hive> SELECT TRANSFORM(a, b)
       >   ROW FORMAT DELIMITED
       >   FIELDS TERMINATED BY '|'
       >   LINES TERMINATED BY '\n'
       >   NULL DEFINED AS 'NULL'
       > USING 'cat'
       >   ROW FORMAT DELIMITED
       >   FIELDS TERMINATED BY '|'
       >   LINES TERMINATED BY '\n'
       >   NULL DEFINED AS 'NULL'
       > FROM (
       > select 1 as a, 2 as b
       > ) tmp ;
   OK
   1	2
   Time taken: 20.735 seconds, Fetched: 1 row(s)
   ```
   
   input column size < 2
   ```
   hive> SELECT TRANSFORM(a)
       >   ROW FORMAT DELIMITED
       >   FIELDS TERMINATED BY '|'
       >   LINES TERMINATED BY '\n'
       >   NULL DEFINED AS 'NULL'
       > USING 'cat'
       >   ROW FORMAT DELIMITED
       >   FIELDS TERMINATED BY '|'
       >   LINES TERMINATED BY '\n'
       >   NULL DEFINED AS 'NULL'
       > FROM (
       > select 1 as a
       > ) tmp ;
   OK
   1	NULL
   Time taken: 20.1 seconds, Fetched: 1 row(s)
   ```
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AngersZhuuuu commented on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AngersZhuuuu commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-677495619


   Hive serde mode schema less behavior
   Input column size >2
   ```
       > select transform(*)
       > using 'cat'
       > from (
       > select 1 as a, 2 as b, 3 as c
       > ) tmp ;
   OK
   1	2	3
   Time taken: 25.465 seconds, Fetched: 1 row(s)
   ```
   
   Input column size >  2 with  `'serialization.last.column.takes.rest' = 'true'`
   ```
       > select transform(*)
       >     ROW FORMAT SERDE 'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe'
       >       WITH SERDEPROPERTIES (
       >        'serialization.last.column.takes.rest' = 'true'
       >       )
       >     using 'cat'
       >     ROW FORMAT SERDE 'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe'
       >       WITH SERDEPROPERTIES (
       >        'serialization.last.column.takes.rest' = 'true'
       >       )
       > from (
       > select 1 as a, 2 as b, 3 as c
       > ) tmp ;
   OK
   1	2	3
   Time taken: 24.832 seconds, Fetched: 1 row(s)
   
   ```
   
   Input column size >  2 with  `'serialization.last.column.takes.rest' = 'false'`
   
   ```
   hive>
       >
       > select transform(*)
       >     ROW FORMAT SERDE 'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe'
       >       WITH SERDEPROPERTIES (
       >        'serialization.last.column.takes.rest' = 'false'
       >       )
       >     using 'cat'
       >     ROW FORMAT SERDE 'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe'
       >       WITH SERDEPROPERTIES (
       >        'serialization.last.column.takes.rest' = 'false'
       >       )
       > from (
       > select 1 as a, 2 as b, 3 as c
       > ) tmp ;
   OK
   1	2
   Time taken: 25.921 seconds, Fetched: 1 row(s)
   hive>
   ```
   
   
   Input column size = 2
   ```
   hive> select transform(*)
       > using 'cat'
       > from (
       > select 1 as a, 2 as b
       > ) tmp ;
   
   OK
   1	2
   Time taken: 27.217 seconds, Fetched: 1 row(s)
   ```
   
   input column < 2
   ```
   hive> select transform(*)
       > using 'cat'
       > from (
       > select 1 as a
       > ) tmp ;
   OK
   1	NULL
   Time taken: 23.717 seconds, Fetched: 1 row(s)
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AngersZhuuuu removed a comment on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AngersZhuuuu removed a comment on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-690967606


   ping @cloud-fan 


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] SparkQA removed a comment on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
SparkQA removed a comment on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-678343258


   **[Test build #127746 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/127746/testReport)** for PR 29421 at commit [`a906818`](https://github.com/apache/spark/commit/a90681892d12b6c1b8655ac01c14e741b3f1bb6c).


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins removed a comment on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-678782861






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] maropu edited a comment on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
maropu edited a comment on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-683485993


   I noticed now that some Jenkins jobs for maven fail in the TRANSFORM-reateld tests, e.g.,
   spark-master-test-maven-hadoop-2.7-hive-2.3-jdk-11: https://amplab.cs.berkeley.edu/jenkins/view/Spark%20QA%20Test%20(Dashboard)/job/spark-master-test-maven-hadoop-2.7-hive-2.3-jdk-11/
   spark-master-test-maven-hadoop-3.2-hive-2.3-jdk-11:
   https://amplab.cs.berkeley.edu/jenkins/view/Spark%20QA%20Test%20(Dashboard)/job/spark-master-test-maven-hadoop-3.2-hive-2.3-jdk-11/
   spark-master-test-maven-hadoop-3.2-hive-2.3:
   https://amplab.cs.berkeley.edu/jenkins/view/Spark%20QA%20Test%20(Dashboard)/job/spark-master-test-maven-hadoop-3.2-hive-2.3/
   
   Not sure about which commit break them and could you check them?
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] maropu commented on a change in pull request #29421: [SPARK-32388][SQL]TRANSFORM when schema less should keep same with hive[

Posted by GitBox <gi...@apache.org>.
maropu commented on a change in pull request #29421:
URL: https://github.com/apache/spark/pull/29421#discussion_r469838596



##########
File path: sql/hive/src/main/scala/org/apache/spark/sql/hive/execution/HiveScriptTransformationExec.scala
##########
@@ -274,6 +275,14 @@ object HiveScriptIOSchema extends HiveInspectors {
     var propsMap = serdeProps.toMap + (serdeConstants.LIST_COLUMNS -> columns.mkString(","))
     propsMap = propsMap + (serdeConstants.LIST_COLUMN_TYPES -> columnTypesNames)
 
+    if (!propsMap.contains(serdeConstants.SERIALIZATION_LAST_COLUMN_TAKES_REST)) {

Review comment:
       This fix works only in hive? How about spark-native transform?




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] SparkQA removed a comment on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
SparkQA removed a comment on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-686001267


   **[Test build #128213 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/128213/testReport)** for PR 29421 at commit [`edec9bb`](https://github.com/apache/spark/commit/edec9bb228e4d25972a5599f6b9e60cb4eddd2c8).


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AngersZhuuuu commented on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AngersZhuuuu commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-690967606






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] SparkQA commented on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-677515936


   **[Test build #127687 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/127687/testReport)** for PR 29421 at commit [`99ae891`](https://github.com/apache/spark/commit/99ae8911b43470804960cdabec6a2b96d33f5c1d).


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins removed a comment on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-688840257






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] SparkQA commented on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-716301628


   **[Test build #130253 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/130253/testReport)** for PR 29421 at commit [`e83f6a5`](https://github.com/apache/spark/commit/e83f6a55e20e7f4edfa11ad91e06115a5eb38c6d).
    * This patch **fails Spark unit tests**.
    * This patch merges cleanly.
    * This patch adds no public classes.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] SparkQA removed a comment on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
SparkQA removed a comment on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-716356599


   **[Test build #130268 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/130268/testReport)** for PR 29421 at commit [`e83f6a5`](https://github.com/apache/spark/commit/e83f6a55e20e7f4edfa11ad91e06115a5eb38c6d).


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins commented on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-679073717






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] HyukjinKwon edited a comment on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
HyukjinKwon edited a comment on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-716270048


   Ooops, @AngersZhuuuu, seems like it has a bit of conflicts with https://github.com/apache/spark/commit/a127387a53e1a24e76de83c5a1858fcdbd38c3a2#diff-3788b2d136cabc009f0a64db207d0ffbe777c5e7ad02d5f3aa9de33e1f295843. I just realised that the last test was triggered a month ago:
   
   ```
   Error:  /__w/spark/spark/sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveScriptTransformationSuite.scala:185:13: not found: value decimalToString
   Error:              decimalToString('d),
   Error:              ^
   Error:  /__w/spark/spark/sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveScriptTransformationSuite.scala:241:13: not found: value decimalToString
   Error:              decimalToString('d),
   Error:              ^
   ```
   
   I could just fix it right away but let's just revert it to be safer given that the test has to run against the latest upstream + Hive 1.2 path was removed.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AngersZhuuuu commented on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AngersZhuuuu commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-683397577


   ping @maropu  @HyukjinKwon  @cloud-fan 


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] maropu commented on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
maropu commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-683506468


   Many thanks, @AngersZhuuuu !


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] maropu commented on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
maropu commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-683488275


   Looks the same issue with https://github.com/apache/spark/pull/28186 ?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] maropu commented on a change in pull request #29421: [SPARK-32388][SQL]TRANSFORM when schema less should keep same with hive

Posted by GitBox <gi...@apache.org>.
maropu commented on a change in pull request #29421:
URL: https://github.com/apache/spark/pull/29421#discussion_r469892680



##########
File path: sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveScriptTransformationSuite.scala
##########
@@ -182,7 +182,11 @@ class HiveScriptTransformationSuite extends BaseScriptTransformationSuite with T
         identity,
         df.select(
           'a.cast("string").as("key"),
-          'b.cast("string").as("value")).collect())
+          concat_ws("\t",
+            'b.cast("string"),
+            'c.cast("string"),
+            'd.cast("string"),
+            'e.cast("string")).as("value")).collect())

Review comment:
       What happens if a single column given with hive serde in this case? https://github.com/apache/spark/pull/29414/files#diff-01228f8ade90c259db2dfdf31ea8a5d1R61-R63




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AngersZhuuuu commented on a change in pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AngersZhuuuu commented on a change in pull request #29421:
URL: https://github.com/apache/spark/pull/29421#discussion_r511688786



##########
File path: sql/core/src/main/scala/org/apache/spark/sql/execution/BaseScriptTransformationExec.scala
##########
@@ -111,15 +111,14 @@ trait BaseScriptTransformationExec extends UnaryExecNode {
               .zip(outputFieldWriters)
               .map { case (data, writer) => writer(data) })
       } else {
-        // In schema less mode, hive default serde will choose first two output column as output
-        // if output column size less then 2, it will throw ArrayIndexOutOfBoundsException.
-        // Here we change spark's behavior same as hive's default serde.
-        // But in hive, TRANSFORM with schema less behavior like origin spark, we will fix this
-        // to keep spark and hive behavior same in SPARK-32388
+        // In schema less mode, hive will choose first two output column as output.
+        // If output column size less then 2, it will return NULL for columns with missing values.
+        // Here we split row string and choose first 2 values, if values's size less then 2,
+        // we pad NULL value until 2 to make behavior same with hive.
         val kvWriter = CatalystTypeConverters.createToCatalystConverter(StringType)
         prevLine: String =>
           new GenericInternalRow(
-            prevLine.split(outputRowFormat).slice(0, 2)
+            prevLine.split(outputRowFormat).slice(0, 2).padTo(2, null)

Review comment:
       > @AngersZhuuuu, can you add a configuration to control the legacy behaviour, and add a note to the migration guide since it's arguable to say this is a bug? With that, I think I can leave my sign-off and merge.
   
   This suggestion looks good to me, but since we have fix a similar issue.  https://github.com/apache/spark/commit/c75a82794fc6a0f35697f8e1258562d43e860f68#diff-1bdf8d74f6b4f84d5acb1d1490503cde337fe64fe5d21339d7fedb06bd7cabc0
   
   How about merge this and  I will follow a pr to add a configuration to control the legacy behavior.  Change these two point together seems to be better?




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins removed a comment on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-683582776






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AngersZhuuuu commented on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AngersZhuuuu commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-696595816


   ping @cloud-fan 


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] SparkQA removed a comment on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
SparkQA removed a comment on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-688570183


   **[Test build #128369 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/128369/testReport)** for PR 29421 at commit [`02653a0`](https://github.com/apache/spark/commit/02653a0ea8c1f8ce223576af6532944a5176e2a0).


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] SparkQA commented on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-678947068


   **[Test build #127830 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/127830/testReport)** for PR 29421 at commit [`5f03222`](https://github.com/apache/spark/commit/5f032229ca2c457753622e21e22d92848de24fa6).
    * This patch **fails due to an unknown error code, -9**.
    * This patch merges cleanly.
    * This patch adds no public classes.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins removed a comment on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-678798216


   Test FAILed.
   Refer to this link for build results (access rights to CI server needed): 
   https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/127809/
   Test FAILed.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins removed a comment on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-678947147


   Merged build finished. Test FAILed.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AngersZhuuuu commented on a change in pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AngersZhuuuu commented on a change in pull request #29421:
URL: https://github.com/apache/spark/pull/29421#discussion_r475374466



##########
File path: sql/core/src/main/scala/org/apache/spark/sql/execution/SparkSqlParser.scala
##########
@@ -783,7 +783,9 @@ class SparkSqlAstBuilder(conf: SQLConf) extends AstBuilder(conf) {
         // Use default (serde) format.
         val name = conf.getConfString("hive.script.serde",
           "org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe")
-        val props = Seq("field.delim" -> "\t")
+        val props = Seq(
+          "field.delim" -> "\t",
+          "serialization.last.column.takes.rest" -> "true")

Review comment:
       https://issues.apache.org/jira/browse/SPARK-32684
   https://issues.apache.org/jira/browse/SPARK-32685
   This two issue, WDYT?




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] HyukjinKwon commented on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
HyukjinKwon commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-716270048


   Ooops, @AngersZhuuuu, seems like it has a bit of conflicts with https://github.com/apache/spark/commit/a127387a53e1a24e76de83c5a1858fcdbd38c3a2#diff-3788b2d136cabc009f0a64db207d0ffbe777c5e7ad02d5f3aa9de33e1f295843. I just realised that the last test was triggered a month before.
   
   I could just fix it right away but let's just revert it to be safer given that the test has to run against the latest upstream + Hive 1.2 path was removed.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] maropu edited a comment on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
maropu edited a comment on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-683487920


   > It is ok in current env, but seems in jdk11 it can't read it .
   
   Really? The last one `spark-master-test-maven-hadoop-3.2-hive-2.3:` is not for jdk11. I think this is a maven issue.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins commented on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-685995871






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] HyukjinKwon closed pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
HyukjinKwon closed pull request #29421:
URL: https://github.com/apache/spark/pull/29421


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins removed a comment on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-688861802






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] maropu commented on a change in pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
maropu commented on a change in pull request #29421:
URL: https://github.com/apache/spark/pull/29421#discussion_r484464227



##########
File path: sql/core/src/main/scala/org/apache/spark/sql/execution/BaseScriptTransformationExec.scala
##########
@@ -111,15 +111,14 @@ trait BaseScriptTransformationExec extends UnaryExecNode {
               .zip(outputFieldWriters)
               .map { case (data, writer) => writer(data) })
       } else {
-        // In schema less mode, hive default serde will choose first two output column as output
-        // if output column size less then 2, it will throw ArrayIndexOutOfBoundsException.
-        // Here we change spark's behavior same as hive's default serde.
-        // But in hive, TRANSFORM with schema less behavior like origin spark, we will fix this
-        // to keep spark and hive behavior same in SPARK-32388
+        // In schema less mode, hive will choose first two output column as output.
+        // If output column size less then 2, it will return NULL for columns with missing values.
+        // Here we split row string and choose first 2 values, if values's size less then 2,
+        // we pad NULL value util 2 to make behavior same with hive.

Review comment:
       > we pad NULL value util 2 to make behavior same with hive.
   
   util?




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] SparkQA removed a comment on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
SparkQA removed a comment on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-677515936


   **[Test build #127687 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/127687/testReport)** for PR 29421 at commit [`99ae891`](https://github.com/apache/spark/commit/99ae8911b43470804960cdabec6a2b96d33f5c1d).


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins commented on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-677516441






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] SparkQA commented on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-678347067


   **[Test build #127749 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/127749/testReport)** for PR 29421 at commit [`bd94071`](https://github.com/apache/spark/commit/bd94071fa4a29e8fd2e02dd46b7a197648e441da).


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] HyukjinKwon edited a comment on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
HyukjinKwon edited a comment on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-716270048


   Ooops, @AngersZhuuuu, seems like it has a bit of conflicts with https://github.com/apache/spark/commit/a127387a53e1a24e76de83c5a1858fcdbd38c3a2#diff-3788b2d136cabc009f0a64db207d0ffbe777c5e7ad02d5f3aa9de33e1f295843. I just realised that the last test was triggered a month before:
   
   ```
   Error:  /__w/spark/spark/sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveScriptTransformationSuite.scala:185:13: not found: value decimalToString
   Error:              decimalToString('d),
   Error:              ^
   Error:  /__w/spark/spark/sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveScriptTransformationSuite.scala:241:13: not found: value decimalToString
   Error:              decimalToString('d),
   Error:              ^
   ```
   
   I could just fix it right away but let's just revert it to be safer given that the test has to run against the latest upstream + Hive 1.2 path was removed.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AngersZhuuuu commented on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AngersZhuuuu commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-716303410


   retest this please


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] SparkQA removed a comment on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
SparkQA removed a comment on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-716305927


   **[Test build #130257 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/130257/testReport)** for PR 29421 at commit [`e83f6a5`](https://github.com/apache/spark/commit/e83f6a55e20e7f4edfa11ad91e06115a5eb38c6d).


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AngersZhuuuu commented on a change in pull request #29421: [SPARK-32388][SQL]TRANSFORM when schema less should keep same with hive

Posted by GitBox <gi...@apache.org>.
AngersZhuuuu commented on a change in pull request #29421:
URL: https://github.com/apache/spark/pull/29421#discussion_r469855638



##########
File path: sql/hive/src/main/scala/org/apache/spark/sql/hive/execution/HiveScriptTransformationExec.scala
##########
@@ -274,6 +275,14 @@ object HiveScriptIOSchema extends HiveInspectors {
     var propsMap = serdeProps.toMap + (serdeConstants.LIST_COLUMNS -> columns.mkString(","))
     propsMap = propsMap + (serdeConstants.LIST_COLUMN_TYPES -> columnTypesNames)
 
+    if (!propsMap.contains(serdeConstants.SERIALIZATION_LAST_COLUMN_TAKES_REST)) {

Review comment:
       > This fix works only in hive? How about spark-native transform?
   
   As  I have show in pr desc,  spark no-serde mode is same as hive no-serde(ROW FORMAT DELIMITED) mode.
   In other words, hive serde mode(Such as LazySimpleSerde) is different  from no-serde(ROW FORMAT DELIMITED) mode




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] SparkQA removed a comment on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
SparkQA removed a comment on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-683508413


   **[Test build #128063 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/128063/testReport)** for PR 29421 at commit [`191bcce`](https://github.com/apache/spark/commit/191bccedd3962413b045c40a03a74cf819d59798).


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] SparkQA commented on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-678469350


   **[Test build #127746 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/127746/testReport)** for PR 29421 at commit [`a906818`](https://github.com/apache/spark/commit/a90681892d12b6c1b8655ac01c14e741b3f1bb6c).
    * This patch passes all tests.
    * This patch merges cleanly.
    * This patch adds no public classes.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] cloud-fan commented on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
cloud-fan commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-676012804


   can you list the behaviors of both w/ serde and w/o serde? We need to understand why we only need to fix the w/ serde case.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins removed a comment on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-677516441






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] SparkQA commented on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-680143949


   **[Test build #127888 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/127888/testReport)** for PR 29421 at commit [`5f03222`](https://github.com/apache/spark/commit/5f032229ca2c457753622e21e22d92848de24fa6).
    * This patch passes all tests.
    * This patch merges cleanly.
    * This patch adds no public classes.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] maropu commented on a change in pull request #29421: [SPARK-32388][SQL]TRANSFORM when schema less should keep same with hive

Posted by GitBox <gi...@apache.org>.
maropu commented on a change in pull request #29421:
URL: https://github.com/apache/spark/pull/29421#discussion_r469889057



##########
File path: sql/hive/src/main/scala/org/apache/spark/sql/hive/execution/HiveScriptTransformationExec.scala
##########
@@ -274,6 +275,14 @@ object HiveScriptIOSchema extends HiveInspectors {
     var propsMap = serdeProps.toMap + (serdeConstants.LIST_COLUMNS -> columns.mkString(","))
     propsMap = propsMap + (serdeConstants.LIST_COLUMN_TYPES -> columnTypesNames)
 
+    if (!propsMap.contains(serdeConstants.SERIALIZATION_LAST_COLUMN_TAKES_REST)) {

Review comment:
       hm, if we implement spark-native `LazySimpleSerde`-like serde in follow-up activities, the answers below will change accordingly?
   https://github.com/apache/spark/pull/29414/files#diff-01228f8ade90c259db2dfdf31ea8a5d1R60-R71
   
   Either way, we need to update the comment there and we should fix `java.lang.ArrayIndexOutOfBoundsException` somewhere.
   ```
   -- SPARK-32388 handle schema less
   SELECT TRANSFORM(a)
   USING 'cat'
   FROM t;
   ``` 
   https://github.com/apache/spark/pull/29414/files#diff-4c9e72a08bc55c74dfcf8b000bfa8bd8R103-R111




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins removed a comment on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-683508655






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins removed a comment on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-678903482


   Test FAILed.
   Refer to this link for build results (access rights to CI server needed): 
   https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/127823/
   Test FAILed.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins commented on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-678347763






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] SparkQA removed a comment on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
SparkQA removed a comment on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-678782722


   **[Test build #127809 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/127809/testReport)** for PR 29421 at commit [`bd94071`](https://github.com/apache/spark/commit/bd94071fa4a29e8fd2e02dd46b7a197648e441da).


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] SparkQA commented on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-683581972


   **[Test build #128063 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/128063/testReport)** for PR 29421 at commit [`191bcce`](https://github.com/apache/spark/commit/191bccedd3962413b045c40a03a74cf819d59798).
    * This patch passes all tests.
    * This patch merges cleanly.
    * This patch adds no public classes.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins commented on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-716351330






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins removed a comment on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-688667085






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins removed a comment on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-678470422






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] SparkQA removed a comment on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
SparkQA removed a comment on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-678950049


   **[Test build #127833 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/127833/testReport)** for PR 29421 at commit [`5f03222`](https://github.com/apache/spark/commit/5f032229ca2c457753622e21e22d92848de24fa6).


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AngersZhuuuu commented on a change in pull request #29421: [SPARK-32388][SQL]TRANSFORM when schema less should keep same with hive

Posted by GitBox <gi...@apache.org>.
AngersZhuuuu commented on a change in pull request #29421:
URL: https://github.com/apache/spark/pull/29421#discussion_r469855638



##########
File path: sql/hive/src/main/scala/org/apache/spark/sql/hive/execution/HiveScriptTransformationExec.scala
##########
@@ -274,6 +275,14 @@ object HiveScriptIOSchema extends HiveInspectors {
     var propsMap = serdeProps.toMap + (serdeConstants.LIST_COLUMNS -> columns.mkString(","))
     propsMap = propsMap + (serdeConstants.LIST_COLUMN_TYPES -> columnTypesNames)
 
+    if (!propsMap.contains(serdeConstants.SERIALIZATION_LAST_COLUMN_TAKES_REST)) {

Review comment:
       > This fix works only in hive? How about spark-native transform?
   
   As  I have show in pr desc,  spark no-serde mode is same as hive no-serde(ROW FORMAT DELIMITED) mode.
   In other words, hive serde mode(Such as LazySimpleSerde) is different  from no-serde(ROW FORMAT DELIMITED) mode. 
   
   
   Since in hive serde(support this config) mode this config's value default is true




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins commented on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-716515589






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AngersZhuuuu commented on pull request #29421: [SPARK-32388][SQL]TRANSFORM when schema less should keep same with hive[

Posted by GitBox <gi...@apache.org>.
AngersZhuuuu commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-673217581


   FYI @maropu @cloud-fan 


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins removed a comment on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-677540153






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins removed a comment on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-716430865






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins commented on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-678782861






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins removed a comment on pull request #29421: [SPARK-32388][SQL]TRANSFORM when schema less should keep same with hive[

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-673258357






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] maropu commented on a change in pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
maropu commented on a change in pull request #29421:
URL: https://github.com/apache/spark/pull/29421#discussion_r475361428



##########
File path: sql/core/src/main/scala/org/apache/spark/sql/execution/SparkSqlParser.scala
##########
@@ -783,7 +783,9 @@ class SparkSqlAstBuilder(conf: SQLConf) extends AstBuilder(conf) {
         // Use default (serde) format.
         val name = conf.getConfString("hive.script.serde",
           "org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe")
-        val props = Seq("field.delim" -> "\t")
+        val props = Seq(
+          "field.delim" -> "\t",
+          "serialization.last.column.takes.rest" -> "true")

Review comment:
       We don't respect `WITH SERDEPROPERTIES`?




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins removed a comment on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-716289882






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins removed a comment on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-678343887






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins removed a comment on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-677776897






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins removed a comment on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-716273345


   Test FAILed.
   Refer to this link for build results (access rights to CI server needed): 
   https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/130252/
   Test FAILed.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] SparkQA commented on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-685762463


   **[Test build #128203 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/128203/testReport)** for PR 29421 at commit [`edec9bb`](https://github.com/apache/spark/commit/edec9bb228e4d25972a5599f6b9e60cb4eddd2c8).
    * This patch passes all tests.
    * This patch merges cleanly.
    * This patch adds no public classes.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] SparkQA commented on pull request #29421: [SPARK-32388][SQL]TRANSFORM when schema less should keep same with hive[

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-673257590


   **[Test build #127393 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/127393/testReport)** for PR 29421 at commit [`8ac3de3`](https://github.com/apache/spark/commit/8ac3de3f6a5b31a0fa3595800c305627c1cac942).
    * This patch passes all tests.
    * This patch merges cleanly.
    * This patch adds no public classes.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins removed a comment on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-679003744






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins removed a comment on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-680145169






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] SparkQA commented on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-678343258


   **[Test build #127746 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/127746/testReport)** for PR 29421 at commit [`a906818`](https://github.com/apache/spark/commit/a90681892d12b6c1b8655ac01c14e741b3f1bb6c).


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AngersZhuuuu removed a comment on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AngersZhuuuu removed a comment on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-680679361


   Any more need to confirm?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] SparkQA commented on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-716273330


   **[Test build #130252 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/130252/testReport)** for PR 29421 at commit [`02653a0`](https://github.com/apache/spark/commit/02653a0ea8c1f8ce223576af6532944a5176e2a0).
    * This patch **fails to build**.
    * This patch merges cleanly.
    * This patch adds no public classes.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] SparkQA removed a comment on pull request #29421: [SPARK-32388][SQL]TRANSFORM when schema less should keep same with hive[

Posted by GitBox <gi...@apache.org>.
SparkQA removed a comment on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-673218130


   **[Test build #127393 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/127393/testReport)** for PR 29421 at commit [`8ac3de3`](https://github.com/apache/spark/commit/8ac3de3f6a5b31a0fa3595800c305627c1cac942).


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] maropu commented on a change in pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
maropu commented on a change in pull request #29421:
URL: https://github.com/apache/spark/pull/29421#discussion_r475373405



##########
File path: sql/core/src/main/scala/org/apache/spark/sql/execution/SparkSqlParser.scala
##########
@@ -783,7 +783,9 @@ class SparkSqlAstBuilder(conf: SQLConf) extends AstBuilder(conf) {
         // Use default (serde) format.
         val name = conf.getConfString("hive.script.serde",
           "org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe")
-        val props = Seq("field.delim" -> "\t")
+        val props = Seq(
+          "field.delim" -> "\t",
+          "serialization.last.column.takes.rest" -> "true")

Review comment:
       Ah, I see.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] maropu commented on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
maropu commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-678916433


   retest this please


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] SparkQA removed a comment on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
SparkQA removed a comment on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-678917855


   **[Test build #127830 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/127830/testReport)** for PR 29421 at commit [`5f03222`](https://github.com/apache/spark/commit/5f032229ca2c457753622e21e22d92848de24fa6).


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AngersZhuuuu commented on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AngersZhuuuu commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-688664965


   retest this please


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins removed a comment on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-716327181






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins commented on pull request #29421: [SPARK-32388][SQL]TRANSFORM when schema less should keep same with hive[

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-673258357






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins removed a comment on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-716351330


   Merged build finished. Test FAILed.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AngersZhuuuu commented on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AngersZhuuuu commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-676415073


   > can you list the behaviors of both w/ serde and w/o serde? We need to understand why we only need to fix the w/ serde case.
   
   Yea, later 


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] maropu commented on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
maropu commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-683487920


   > It is ok in current env, but seems in jdk11 it can't read it .
   
   Really? The last one `spark-master-test-maven-hadoop-3.2-hive-2.3:` is not for jdk11.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins commented on pull request #29421: [SPARK-32388][SQL]TRANSFORM when schema less should keep same with hive[

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-673218501






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins commented on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-677756960






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins removed a comment on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-678918248






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AngersZhuuuu commented on a change in pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AngersZhuuuu commented on a change in pull request #29421:
URL: https://github.com/apache/spark/pull/29421#discussion_r479847927



##########
File path: sql/core/src/main/scala/org/apache/spark/sql/execution/BaseScriptTransformationExec.scala
##########
@@ -111,15 +111,14 @@ trait BaseScriptTransformationExec extends UnaryExecNode {
               .zip(outputFieldWriters)
               .map { case (data, writer) => writer(data) })
       } else {
-        // In schema less mode, hive default serde will choose first two output column as output
-        // if output column size less then 2, it will throw ArrayIndexOutOfBoundsException.
-        // Here we change spark's behavior same as hive's default serde.
-        // But in hive, TRANSFORM with schema less behavior like origin spark, we will fix this
-        // to keep spark and hive behavior same in SPARK-32388
+        // In schema less mode, hive will choose first two output column as output.
+        // If output column size less then 2, it will return NULL for columns with missing values.
+        // Here we split row string and choose first 2 values, if values's size less then 2,
+        // we pad NULL value util 2 to make behavior same with hive.

Review comment:
       cc @maropu 




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins removed a comment on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-716275937


   Merged build finished. Test FAILed.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AngersZhuuuu commented on a change in pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AngersZhuuuu commented on a change in pull request #29421:
URL: https://github.com/apache/spark/pull/29421#discussion_r475371738



##########
File path: sql/core/src/main/scala/org/apache/spark/sql/execution/SparkSqlParser.scala
##########
@@ -783,7 +783,9 @@ class SparkSqlAstBuilder(conf: SQLConf) extends AstBuilder(conf) {
         // Use default (serde) format.
         val name = conf.getConfString("hive.script.serde",
           "org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe")
-        val props = Seq("field.delim" -> "\t")
+        val props = Seq(
+          "field.delim" -> "\t",
+          "serialization.last.column.takes.rest" -> "true")

Review comment:
       And if user  specify ` ROW FORMAT SERDE`  will respect `WITH SERDEPROPERTIES`. 
   ALL UT IN `"SPARK-32388: TRANSFORM should handle schema less correctly (hive serde)"`




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] SparkQA removed a comment on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
SparkQA removed a comment on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-677538340


   **[Test build #127691 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/127691/testReport)** for PR 29421 at commit [`f854874`](https://github.com/apache/spark/commit/f85487448ac8871413285a1e511b22860640a68d).


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] HyukjinKwon commented on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
HyukjinKwon commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-716270597


   I reverted at https://github.com/apache/spark/commit/369cc614f369f9fd9be5b13a3f047a261c8e8d90. Mind fixing it to make the tests pass?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] SparkQA commented on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-678859868


   **[Test build #127823 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/127823/testReport)** for PR 29421 at commit [`5f03222`](https://github.com/apache/spark/commit/5f032229ca2c457753622e21e22d92848de24fa6).


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] SparkQA commented on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-716274757


   **[Test build #130253 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/130253/testReport)** for PR 29421 at commit [`e83f6a5`](https://github.com/apache/spark/commit/e83f6a55e20e7f4edfa11ad91e06115a5eb38c6d).


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins removed a comment on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-677530506






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AngersZhuuuu commented on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AngersZhuuuu commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-716270907


   > I reverted at [369cc61](https://github.com/apache/spark/commit/369cc614f369f9fd9be5b13a3f047a261c8e8d90). Mind fixing it to make the tests pass?
   
   Sure, I'll take care of it right away


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins commented on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-686184683






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AngersZhuuuu commented on a change in pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AngersZhuuuu commented on a change in pull request #29421:
URL: https://github.com/apache/spark/pull/29421#discussion_r473826551



##########
File path: sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveScriptTransformationSuite.scala
##########
@@ -182,7 +182,11 @@ class HiveScriptTransformationSuite extends BaseScriptTransformationSuite with T
         identity,
         df.select(
           'a.cast("string").as("key"),
-          'b.cast("string").as("value")).collect())
+          concat_ws("\t",
+            'b.cast("string"),
+            'c.cast("string"),
+            'd.cast("string"),
+            'e.cast("string")).as("value")).collect())

Review comment:
       > What happens if a single column given with hive serde in this case? https://github.com/apache/spark/pull/29414/files#diff-01228f8ade90c259db2dfdf31ea8a5d1R61-R63
   
   See https://github.com/apache/spark/pull/29421#issuecomment-677495619




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] SparkQA commented on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-677755758


   **[Test build #127691 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/127691/testReport)** for PR 29421 at commit [`f854874`](https://github.com/apache/spark/commit/f85487448ac8871413285a1e511b22860640a68d).
    * This patch passes all tests.
    * This patch merges cleanly.
    * This patch adds no public classes.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] SparkQA removed a comment on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
SparkQA removed a comment on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-678347067


   **[Test build #127749 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/127749/testReport)** for PR 29421 at commit [`bd94071`](https://github.com/apache/spark/commit/bd94071fa4a29e8fd2e02dd46b7a197648e441da).


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins removed a comment on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-678860152






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] SparkQA commented on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-678950049


   **[Test build #127833 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/127833/testReport)** for PR 29421 at commit [`5f03222`](https://github.com/apache/spark/commit/5f032229ca2c457753622e21e22d92848de24fa6).


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] SparkQA commented on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-677516847


   **[Test build #127687 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/127687/testReport)** for PR 29421 at commit [`99ae891`](https://github.com/apache/spark/commit/99ae8911b43470804960cdabec6a2b96d33f5c1d).
    * This patch **fails Scala style tests**.
    * This patch merges cleanly.
    * This patch adds no public classes.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] maropu commented on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
maropu commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-683504009


   Looks okay except for one minor comment. I'll leave this to other reviewers.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AngersZhuuuu commented on a change in pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AngersZhuuuu commented on a change in pull request #29421:
URL: https://github.com/apache/spark/pull/29421#discussion_r475294850



##########
File path: sql/core/src/main/scala/org/apache/spark/sql/execution/BaseScriptTransformationExec.scala
##########
@@ -119,7 +119,7 @@ trait BaseScriptTransformationExec extends UnaryExecNode {
         val kvWriter = CatalystTypeConverters.createToCatalystConverter(StringType)
         prevLine: String =>
           new GenericInternalRow(
-            prevLine.split(outputRowFormat).slice(0, 2)
+            prevLine.split(outputRowFormat).slice(0, 2).padTo(2, null)
               .map(kvWriter))

Review comment:
       @maropu How about split this fix as a new one, since this fix is very necessary and no disputed 




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins removed a comment on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-685513041






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins commented on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-683508655






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AngersZhuuuu commented on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AngersZhuuuu commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-716122843


   ping @cloud-fan @dongjoon-hyun 


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins commented on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-678918248






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] maropu commented on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
maropu commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-683485993


   I noticed now that some Jenkins jobs for jdk11 fail in the TRANSFORM-reateld tests, e.g.,
   Project spark-master-test-maven-hadoop-2.7-hive-2.3-jdk-11: https://amplab.cs.berkeley.edu/jenkins/view/Spark%20QA%20Test%20(Dashboard)/job/spark-master-test-maven-hadoop-2.7-hive-2.3-jdk-11/
   Project spark-master-test-maven-hadoop-3.2-hive-2.3-jdk-11:
   https://amplab.cs.berkeley.edu/jenkins/view/Spark%20QA%20Test%20(Dashboard)/job/spark-master-test-maven-hadoop-3.2-hive-2.3-jdk-11/
   
   Not sure about which commit break them and could you check them?
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] SparkQA removed a comment on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
SparkQA removed a comment on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-716274757


   **[Test build #130253 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/130253/testReport)** for PR 29421 at commit [`e83f6a5`](https://github.com/apache/spark/commit/e83f6a55e20e7f4edfa11ad91e06115a5eb38c6d).


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] HyukjinKwon commented on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
HyukjinKwon commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-687035791


   I am okay with this PR as long as it's consistent with Hive's.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AngersZhuuuu commented on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AngersZhuuuu commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-680679361


   Any more need to confirm?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] SparkQA commented on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-716356599


   **[Test build #130268 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/130268/testReport)** for PR 29421 at commit [`e83f6a5`](https://github.com/apache/spark/commit/e83f6a55e20e7f4edfa11ad91e06115a5eb38c6d).


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] SparkQA commented on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-688666393


   **[Test build #128385 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/128385/testReport)** for PR 29421 at commit [`02653a0`](https://github.com/apache/spark/commit/02653a0ea8c1f8ce223576af6532944a5176e2a0).


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AngersZhuuuu commented on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AngersZhuuuu commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-716352860


   retest this please


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] maropu commented on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
maropu commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-688361001


   btw, why did you remove the tags `[test-hadoop2.7][test-hive1.2]`?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins removed a comment on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-685763768






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins removed a comment on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-686184683






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins removed a comment on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-678903475


   Merged build finished. Test FAILed.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] SparkQA commented on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-677529657


   **[Test build #127689 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/127689/testReport)** for PR 29421 at commit [`54f7993`](https://github.com/apache/spark/commit/54f7993667369ab895608d62e3fa38f4ecc9f4c5).


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] SparkQA commented on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-686001267


   **[Test build #128213 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/128213/testReport)** for PR 29421 at commit [`edec9bb`](https://github.com/apache/spark/commit/edec9bb228e4d25972a5599f6b9e60cb4eddd2c8).


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins removed a comment on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-716301724


   Merged build finished. Test FAILed.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins commented on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-689086309






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AngersZhuuuu commented on a change in pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AngersZhuuuu commented on a change in pull request #29421:
URL: https://github.com/apache/spark/pull/29421#discussion_r473890272



##########
File path: sql/core/src/main/scala/org/apache/spark/sql/execution/BaseScriptTransformationExec.scala
##########
@@ -119,7 +119,7 @@ trait BaseScriptTransformationExec extends UnaryExecNode {
         val kvWriter = CatalystTypeConverters.createToCatalystConverter(StringType)
         prevLine: String =>
           new GenericInternalRow(
-            prevLine.split(outputRowFormat).slice(0, 2)
+            prevLine.split(outputRowFormat).slice(0, 2).padTo(2, null)
               .map(kvWriter))

Review comment:
       @maropu 
   this question https://github.com/apache/spark/pull/29421/files#r469889057
    fixed by  this line. 
   
   and will rase a new pr for https://issues.apache.org/jira/browse/SPARK-32667




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins commented on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-688570600






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins removed a comment on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-688570600






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins commented on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-679003744






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins commented on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-678903475






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] SparkQA removed a comment on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
SparkQA removed a comment on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-677529657


   **[Test build #127689 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/127689/testReport)** for PR 29421 at commit [`54f7993`](https://github.com/apache/spark/commit/54f7993667369ab895608d62e3fa38f4ecc9f4c5).


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] SparkQA commented on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-685510945


   **[Test build #128203 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/128203/testReport)** for PR 29421 at commit [`edec9bb`](https://github.com/apache/spark/commit/edec9bb228e4d25972a5599f6b9e60cb4eddd2c8).


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AngersZhuuuu commented on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AngersZhuuuu commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-677528904


   cc @cloud-fan @maropu 
   I have show different behavior in each case in hive,  and add a lot UT to show we have keep same behavior as hive.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins removed a comment on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-679073717






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins commented on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-677540153






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins commented on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-678860152






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins commented on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-685763768






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins commented on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-680145169






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AngersZhuuuu commented on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AngersZhuuuu commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-683487745


   > I noticed now that some Jenkins jobs for maven fail in the TRANSFORM-reateld tests, e.g.,
   > spark-master-test-maven-hadoop-2.7-hive-2.3-jdk-11: https://amplab.cs.berkeley.edu/jenkins/view/Spark%20QA%20Test%20(Dashboard)/job/spark-master-test-maven-hadoop-2.7-hive-2.3-jdk-11/
   > spark-master-test-maven-hadoop-3.2-hive-2.3-jdk-11:
   > https://amplab.cs.berkeley.edu/jenkins/view/Spark%20QA%20Test%20(Dashboard)/job/spark-master-test-maven-hadoop-3.2-hive-2.3-jdk-11/
   > spark-master-test-maven-hadoop-3.2-hive-2.3:
   > https://amplab.cs.berkeley.edu/jenkins/view/Spark%20QA%20Test%20(Dashboard)/job/spark-master-test-maven-hadoop-3.2-hive-2.3/
   > 
   > Not sure about which commit break them and could you check them?
   
   Seems failed because resource/test_script.py, we have moved this file from sql/hive module to sql/core module. 
   It is ok in current env, but seems in jdk11 it can't read it .


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AngersZhuuuu commented on a change in pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AngersZhuuuu commented on a change in pull request #29421:
URL: https://github.com/apache/spark/pull/29421#discussion_r469918794



##########
File path: sql/hive/src/main/scala/org/apache/spark/sql/hive/execution/HiveScriptTransformationExec.scala
##########
@@ -274,6 +275,14 @@ object HiveScriptIOSchema extends HiveInspectors {
     var propsMap = serdeProps.toMap + (serdeConstants.LIST_COLUMNS -> columns.mkString(","))
     propsMap = propsMap + (serdeConstants.LIST_COLUMN_TYPES -> columnTypesNames)
 
+    if (!propsMap.contains(serdeConstants.SERIALIZATION_LAST_COLUMN_TAKES_REST)) {
+      val schemaProps = AnnotationUtils.getAnnotation(serde.getClass, classOf[SerDeSpec])
+      if (schemaProps != null &&
+        schemaProps.schemaProps().contains(serdeConstants.SERIALIZATION_LAST_COLUMN_TAKES_REST)) {
+        propsMap = propsMap + (serdeConstants.SERIALIZATION_LAST_COLUMN_TAKES_REST -> "true")
+      }
+    }

Review comment:
       > This code to handle the schemaless case is the same with hive?
   
   No, since when hive plan query, it will set this config.
   I think to keep same behavior with hive is ok




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins commented on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-716327181






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] HyukjinKwon closed pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
HyukjinKwon closed pull request #29421:
URL: https://github.com/apache/spark/pull/29421


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AngersZhuuuu commented on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AngersZhuuuu commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-696595816


   ping @cloud-fan 


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] maropu commented on a change in pull request #29421: [SPARK-32388][SQL]TRANSFORM when schema less should keep same with hive

Posted by GitBox <gi...@apache.org>.
maropu commented on a change in pull request #29421:
URL: https://github.com/apache/spark/pull/29421#discussion_r469889057



##########
File path: sql/hive/src/main/scala/org/apache/spark/sql/hive/execution/HiveScriptTransformationExec.scala
##########
@@ -274,6 +275,14 @@ object HiveScriptIOSchema extends HiveInspectors {
     var propsMap = serdeProps.toMap + (serdeConstants.LIST_COLUMNS -> columns.mkString(","))
     propsMap = propsMap + (serdeConstants.LIST_COLUMN_TYPES -> columnTypesNames)
 
+    if (!propsMap.contains(serdeConstants.SERIALIZATION_LAST_COLUMN_TAKES_REST)) {

Review comment:
       hm, if we implement spark-native `LazySimpleSerde`-like serde in follow-up activities, the answers below will change accordingly?
   https://github.com/apache/spark/pull/29414/files#diff-01228f8ade90c259db2dfdf31ea8a5d1R60-R71
   
   Either way, we need to update the comment there and I think we should fix `java.lang.ArrayIndexOutOfBoundsException` somewhere.
   ```
   -- SPARK-32388 handle schema less
   SELECT TRANSFORM(a)
   USING 'cat'
   FROM t;
   ``` 
   https://github.com/apache/spark/pull/29414/files#diff-4c9e72a08bc55c74dfcf8b000bfa8bd8R103-R111




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] SparkQA commented on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-716284975


   Kubernetes integration test starting
   URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/34853/
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins removed a comment on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-678340250






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins removed a comment on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-678947155


   Test FAILed.
   Refer to this link for build results (access rights to CI server needed): 
   https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/127830/
   Test FAILed.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins commented on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-716273343






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] maropu edited a comment on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
maropu edited a comment on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-683485993


   I noticed now that some Jenkins jobs for maven fail in the TRANSFORM-reateld tests, e.g.,
   Project spark-master-test-maven-hadoop-2.7-hive-2.3-jdk-11: https://amplab.cs.berkeley.edu/jenkins/view/Spark%20QA%20Test%20(Dashboard)/job/spark-master-test-maven-hadoop-2.7-hive-2.3-jdk-11/
   Project spark-master-test-maven-hadoop-3.2-hive-2.3-jdk-11:
   https://amplab.cs.berkeley.edu/jenkins/view/Spark%20QA%20Test%20(Dashboard)/job/spark-master-test-maven-hadoop-3.2-hive-2.3-jdk-11/
   
   Not sure about which commit break them and could you check them?
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] SparkQA commented on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-677775738


   **[Test build #127689 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/127689/testReport)** for PR 29421 at commit [`54f7993`](https://github.com/apache/spark/commit/54f7993667369ab895608d62e3fa38f4ecc9f4c5).
    * This patch passes all tests.
    * This patch merges cleanly.
    * This patch adds no public classes.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins removed a comment on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-678950663






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] maropu commented on a change in pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
maropu commented on a change in pull request #29421:
URL: https://github.com/apache/spark/pull/29421#discussion_r479844442



##########
File path: sql/core/src/main/scala/org/apache/spark/sql/execution/BaseScriptTransformationExec.scala
##########
@@ -119,7 +119,7 @@ trait BaseScriptTransformationExec extends UnaryExecNode {
         val kvWriter = CatalystTypeConverters.createToCatalystConverter(StringType)
         prevLine: String =>
           new GenericInternalRow(
-            prevLine.split(outputRowFormat).slice(0, 2)
+            prevLine.split(outputRowFormat).slice(0, 2).padTo(2, null)

Review comment:
       nit: could you leave comments about why we need `.padTo(2, null)` here.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] SparkQA commented on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-689085055


   **[Test build #128408 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/128408/testReport)** for PR 29421 at commit [`02653a0`](https://github.com/apache/spark/commit/02653a0ea8c1f8ce223576af6532944a5176e2a0).
    * This patch passes all tests.
    * This patch merges cleanly.
    * This patch adds no public classes.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins commented on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-716289882






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins commented on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-678950663






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AngersZhuuuu commented on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AngersZhuuuu commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-688860586


   retest this please


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins removed a comment on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-716275940


   Test FAILed.
   Refer to this link for build results (access rights to CI server needed): 
   https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/34852/
   Test FAILed.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AngersZhuuuu commented on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AngersZhuuuu commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-689323753


   > btw, why did you remove the tags `[test-hadoop2.7][test-hive1.2]`?
   
   w/o tags `[test-hadoop2.7][test-hive1.2]` both passed.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins commented on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-716301724






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins removed a comment on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-678347763






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] SparkQA commented on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-716305927


   **[Test build #130257 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/130257/testReport)** for PR 29421 at commit [`e83f6a5`](https://github.com/apache/spark/commit/e83f6a55e20e7f4edfa11ad91e06115a5eb38c6d).


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins removed a comment on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-716515589






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] SparkQA commented on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-716289872


   Kubernetes integration test status success
   URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/34853/
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AngersZhuuuu edited a comment on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AngersZhuuuu edited a comment on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-677495619


   Hive serde mode schema less behavior
   Input column size >2
   ```
       > select transform(*)
       > using 'cat'
       > from (
       > select 1 as a, 2 as b, 3 as c
       > ) tmp ;
   OK
   1	2	3
   Time taken: 25.465 seconds, Fetched: 1 row(s)
   ```
   
   Input column size >2 and specify serde
   ```
       > select transform(*)
       >. ROW FORMAT SERDE 'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe'
       > using 'cat'
       > ROW FORMAT SERDE 'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe'
       > from (
       > select 1 as a, 2 as b, 3 as c
       > ) tmp ;
   OK
   1	2
   Time taken: 25.465 seconds, Fetched: 1 row(s)
   ```
   
   Input column size >  2  specify serde with  `'serialization.last.column.takes.rest' = 'true'`
   ```
       > select transform(*)
       >     ROW FORMAT SERDE 'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe'
       >       WITH SERDEPROPERTIES (
       >        'serialization.last.column.takes.rest' = 'true'
       >       )
       >     using 'cat'
       >     ROW FORMAT SERDE 'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe'
       >       WITH SERDEPROPERTIES (
       >        'serialization.last.column.takes.rest' = 'true'
       >       )
       > from (
       > select 1 as a, 2 as b, 3 as c
       > ) tmp ;
   OK
   1	2	3
   Time taken: 24.832 seconds, Fetched: 1 row(s)
   
   ```
   
   Input column size >  2 specify serde with  `'serialization.last.column.takes.rest' = 'false'`
   
   ```
   hive>
       >
       > select transform(*)
       >     ROW FORMAT SERDE 'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe'
       >       WITH SERDEPROPERTIES (
       >        'serialization.last.column.takes.rest' = 'false'
       >       )
       >     using 'cat'
       >     ROW FORMAT SERDE 'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe'
       >       WITH SERDEPROPERTIES (
       >        'serialization.last.column.takes.rest' = 'false'
       >       )
       > from (
       > select 1 as a, 2 as b, 3 as c
       > ) tmp ;
   OK
   1	2
   Time taken: 25.921 seconds, Fetched: 1 row(s)
   hive>
   ```
   
   
   Input column size = 2
   ```
   hive> select transform(*)
       > using 'cat'
       > from (
       > select 1 as a, 2 as b
       > ) tmp ;
   
   OK
   1	2
   Time taken: 27.217 seconds, Fetched: 1 row(s)
   ```
   
   input column < 2
   ```
   hive> select transform(*)
       > using 'cat'
       > from (
       > select 1 as a
       > ) tmp ;
   OK
   1	NULL
   Time taken: 23.717 seconds, Fetched: 1 row(s)
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins removed a comment on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-716351343


   Test FAILed.
   Refer to this link for build results (access rights to CI server needed): 
   https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/130257/
   Test FAILed.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] SparkQA commented on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-716271359


   **[Test build #130252 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/130252/testReport)** for PR 29421 at commit [`02653a0`](https://github.com/apache/spark/commit/02653a0ea8c1f8ce223576af6532944a5176e2a0).


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] SparkQA commented on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-716418662


   Kubernetes integration test starting
   URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/34868/
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AngersZhuuuu commented on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AngersZhuuuu commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-685764166


   retest this please


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] SparkQA commented on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-716350825


   **[Test build #130257 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/130257/testReport)** for PR 29421 at commit [`e83f6a5`](https://github.com/apache/spark/commit/e83f6a55e20e7f4edfa11ad91e06115a5eb38c6d).
    * This patch **fails due to an unknown error code, -9**.
    * This patch merges cleanly.
    * This patch adds no public classes.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins removed a comment on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-678477237






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins commented on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-678477237






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] SparkQA commented on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-688861015


   **[Test build #128408 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/128408/testReport)** for PR 29421 at commit [`02653a0`](https://github.com/apache/spark/commit/02653a0ea8c1f8ce223576af6532944a5176e2a0).


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins removed a comment on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-678798213


   Merged build finished. Test FAILed.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] SparkQA commented on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-678903206


   **[Test build #127823 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/127823/testReport)** for PR 29421 at commit [`5f03222`](https://github.com/apache/spark/commit/5f032229ca2c457753622e21e22d92848de24fa6).
    * This patch **fails Spark unit tests**.
    * This patch merges cleanly.
    * This patch adds no public classes.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins commented on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-677516866






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins commented on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-678470422






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] SparkQA removed a comment on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
SparkQA removed a comment on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-716271359


   **[Test build #130252 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/130252/testReport)** for PR 29421 at commit [`02653a0`](https://github.com/apache/spark/commit/02653a0ea8c1f8ce223576af6532944a5176e2a0).


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] maropu commented on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
maropu commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-678948481


   retest this please


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins commented on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-683582776






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins removed a comment on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-677516882


   Test FAILed.
   Refer to this link for build results (access rights to CI server needed): 
   https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/127687/
   Test FAILed.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] SparkQA removed a comment on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
SparkQA removed a comment on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-679986652


   **[Test build #127888 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/127888/testReport)** for PR 29421 at commit [`5f03222`](https://github.com/apache/spark/commit/5f032229ca2c457753622e21e22d92848de24fa6).


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AngersZhuuuu commented on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AngersZhuuuu commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-688568672


   > btw, why did you remove the tags `[test-hadoop2.7][test-hive1.2]`?
   
   Since other code about transformation merged, so I test around again  w/o tags.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] SparkQA removed a comment on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
SparkQA removed a comment on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-685510945


   **[Test build #128203 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/128203/testReport)** for PR 29421 at commit [`edec9bb`](https://github.com/apache/spark/commit/edec9bb228e4d25972a5599f6b9e60cb4eddd2c8).


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AngersZhuuuu commented on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AngersZhuuuu commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-683504514


   > > It is ok in current env, but seems in jdk11 it can't read it .
   > 
   > Really? The last one `spark-master-test-maven-hadoop-3.2-hive-2.3:` is not for jdk11. I think this is a maven issue.
   
   Sorry, see your comment in phone just show first two with jdk11.  


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AngersZhuuuu commented on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AngersZhuuuu commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-690967606


   ping @cloud-fan 


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins removed a comment on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-685995871






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins commented on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-677530506






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins removed a comment on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-688665805






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] SparkQA commented on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-716514610


   **[Test build #130268 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/130268/testReport)** for PR 29421 at commit [`e83f6a5`](https://github.com/apache/spark/commit/e83f6a55e20e7f4edfa11ad91e06115a5eb38c6d).
    * This patch passes all tests.
    * This patch merges cleanly.
    * This patch adds no public classes.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] SparkQA commented on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-678476340


   **[Test build #127749 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/127749/testReport)** for PR 29421 at commit [`bd94071`](https://github.com/apache/spark/commit/bd94071fa4a29e8fd2e02dd46b7a197648e441da).
    * This patch passes all tests.
    * This patch merges cleanly.
    * This patch adds no public classes.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AngersZhuuuu commented on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AngersZhuuuu commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-683506308


   > Looks the same issue with #28186 ?
   
   I will rase a new pr to fix this problem.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] SparkQA removed a comment on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
SparkQA removed a comment on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-688666393


   **[Test build #128385 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/128385/testReport)** for PR 29421 at commit [`02653a0`](https://github.com/apache/spark/commit/02653a0ea8c1f8ce223576af6532944a5176e2a0).


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AngersZhuuuu commented on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AngersZhuuuu commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-690967606


   ping @cloud-fan 


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] maropu commented on a change in pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
maropu commented on a change in pull request #29421:
URL: https://github.com/apache/spark/pull/29421#discussion_r475360192



##########
File path: sql/core/src/main/scala/org/apache/spark/sql/execution/BaseScriptTransformationExec.scala
##########
@@ -119,7 +119,7 @@ trait BaseScriptTransformationExec extends UnaryExecNode {
         val kvWriter = CatalystTypeConverters.createToCatalystConverter(StringType)
         prevLine: String =>
           new GenericInternalRow(
-            prevLine.split(outputRowFormat).slice(0, 2)
+            prevLine.split(outputRowFormat).slice(0, 2).padTo(2, null)
               .map(kvWriter))

Review comment:
       If it's a trivial fix, IMO its okay to include it in this PR.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins commented on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-716275937






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] HyukjinKwon commented on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
HyukjinKwon commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-716899254


   Merged to master.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] SparkQA commented on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-716327170


   Kubernetes integration test status success
   URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/34857/
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins commented on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-688667085






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] SparkQA commented on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-678798083


   **[Test build #127809 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/127809/testReport)** for PR 29421 at commit [`bd94071`](https://github.com/apache/spark/commit/bd94071fa4a29e8fd2e02dd46b7a197648e441da).
    * This patch **fails Spark unit tests**.
    * This patch merges cleanly.
    * This patch adds no public classes.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins commented on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-685513041






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AngersZhuuuu commented on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AngersZhuuuu commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-688068363


   > I am okay with this PR as long as it's consistent with Hive's.
   
    I hope to keep this piece going and start the rest.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] HyukjinKwon removed a comment on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
HyukjinKwon removed a comment on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-716265777


   Merged to master.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins commented on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-678343887






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] SparkQA commented on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-683508413


   **[Test build #128063 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/128063/testReport)** for PR 29421 at commit [`191bcce`](https://github.com/apache/spark/commit/191bccedd3962413b045c40a03a74cf819d59798).


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AngersZhuuuu commented on a change in pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AngersZhuuuu commented on a change in pull request #29421:
URL: https://github.com/apache/spark/pull/29421#discussion_r479847818



##########
File path: sql/core/src/main/scala/org/apache/spark/sql/execution/BaseScriptTransformationExec.scala
##########
@@ -119,7 +119,7 @@ trait BaseScriptTransformationExec extends UnaryExecNode {
         val kvWriter = CatalystTypeConverters.createToCatalystConverter(StringType)
         prevLine: String =>
           new GenericInternalRow(
-            prevLine.split(outputRowFormat).slice(0, 2)
+            prevLine.split(outputRowFormat).slice(0, 2).padTo(2, null)

Review comment:
       > nit: could you leave comments about why we need `.padTo(2, null)` here.
   
   See the latest change, I have changed comment leaved before




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins commented on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-678340250






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] maropu commented on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
maropu commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-686110842


   > @maropu Why can't retest this by comment..
   
   Jenkins looks unstable now and we need to wait more time.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] maropu commented on a change in pull request #29421: [SPARK-32388][SQL]TRANSFORM when schema less should keep same with hive

Posted by GitBox <gi...@apache.org>.
maropu commented on a change in pull request #29421:
URL: https://github.com/apache/spark/pull/29421#discussion_r469889961



##########
File path: sql/hive/src/main/scala/org/apache/spark/sql/hive/execution/HiveScriptTransformationExec.scala
##########
@@ -274,6 +275,14 @@ object HiveScriptIOSchema extends HiveInspectors {
     var propsMap = serdeProps.toMap + (serdeConstants.LIST_COLUMNS -> columns.mkString(","))
     propsMap = propsMap + (serdeConstants.LIST_COLUMN_TYPES -> columnTypesNames)
 
+    if (!propsMap.contains(serdeConstants.SERIALIZATION_LAST_COLUMN_TAKES_REST)) {
+      val schemaProps = AnnotationUtils.getAnnotation(serde.getClass, classOf[SerDeSpec])
+      if (schemaProps != null &&
+        schemaProps.schemaProps().contains(serdeConstants.SERIALIZATION_LAST_COLUMN_TAKES_REST)) {
+        propsMap = propsMap + (serdeConstants.SERIALIZATION_LAST_COLUMN_TAKES_REST -> "true")
+      }
+    }

Review comment:
       This code to handle the schemaless case is the same with hive?




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] SparkQA commented on pull request #29421: [SPARK-32388][SQL]TRANSFORM when schema less should keep same with hive[

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-673218130


   **[Test build #127393 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/127393/testReport)** for PR 29421 at commit [`8ac3de3`](https://github.com/apache/spark/commit/8ac3de3f6a5b31a0fa3595800c305627c1cac942).


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins commented on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-678947147






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] SparkQA commented on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-679072953


   **[Test build #127833 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/127833/testReport)** for PR 29421 at commit [`5f03222`](https://github.com/apache/spark/commit/5f032229ca2c457753622e21e22d92848de24fa6).
    * This patch passes all tests.
    * This patch merges cleanly.
    * This patch adds no public classes.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] SparkQA removed a comment on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
SparkQA removed a comment on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-688861015


   **[Test build #128408 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/128408/testReport)** for PR 29421 at commit [`02653a0`](https://github.com/apache/spark/commit/02653a0ea8c1f8ce223576af6532944a5176e2a0).


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AngersZhuuuu commented on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AngersZhuuuu commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-678782501


   retest this please


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] SparkQA removed a comment on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
SparkQA removed a comment on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-678859868


   **[Test build #127823 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/127823/testReport)** for PR 29421 at commit [`5f03222`](https://github.com/apache/spark/commit/5f032229ca2c457753622e21e22d92848de24fa6).


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins commented on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-678798213






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] maropu commented on a change in pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
maropu commented on a change in pull request #29421:
URL: https://github.com/apache/spark/pull/29421#discussion_r475356961



##########
File path: sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveScriptTransformationSuite.scala
##########
@@ -182,7 +182,11 @@ class HiveScriptTransformationSuite extends BaseScriptTransformationSuite with T
         identity,
         df.select(
           'a.cast("string").as("key"),
-          'b.cast("string").as("value")).collect())
+          concat_ws("\t",
+            'b.cast("string"),
+            'c.cast("string"),
+            'd.cast("string"),
+            'e.cast("string")).as("value")).collect())

Review comment:
       Oh, I see. In the case, we should return NULL.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] HyukjinKwon commented on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
HyukjinKwon commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-716265777


   Merged to master.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins commented on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-688861802






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] SparkQA commented on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-677538340


   **[Test build #127691 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/127691/testReport)** for PR 29421 at commit [`f854874`](https://github.com/apache/spark/commit/f85487448ac8871413285a1e511b22860640a68d).


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] HyukjinKwon commented on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
HyukjinKwon commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-716265916


   Merged to master.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AngersZhuuuu commented on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AngersZhuuuu commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-685774231


   @maropu Why can't  retest this by comment..


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] SparkQA commented on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-716316511


   Kubernetes integration test starting
   URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/34857/
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins commented on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-677776897






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AngersZhuuuu removed a comment on pull request #29421: [SPARK-32388][SQL][test-hadoop2.7][test-hive1.2] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AngersZhuuuu removed a comment on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-690967606


   ping @cloud-fan 


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [spark] AmplabJenkins removed a comment on pull request #29421: [SPARK-32388][SQL] TRANSFORM with schema-less mode should keep the same with hive

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #29421:
URL: https://github.com/apache/spark/pull/29421#issuecomment-677756960






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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