maropu commented on issue #23748: [SPARK-23619][SQL] Added default column names 
for explode & posexplode in comments
URL: https://github.com/apache/spark/pull/23748#issuecomment-463008414
 
 
   ah, yes. I think it'd better to fix this, too, in a separate pr.
   Probably, I think zero-based indexing is more natural. For example, 
auto-generated column names in CSV read is baed on zero-based;
   ```
   scala> spark.read.csv("test.csv").show
   +---+---+---+                                                                
   
   |_c0|_c1|_c2|
   +---+---+---+
   |  1|  2|  3|
   +---+---+---+
   ```
   
   Could you check if we have other expressions having one-based indexing?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to