You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Takeshi Yamamuro (Jira)" <ji...@apache.org> on 2019/12/29 05:57:00 UTC

[jira] [Commented] (SPARK-28402) Array indexing is 1-based

    [ https://issues.apache.org/jira/browse/SPARK-28402?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17004651#comment-17004651 ] 

Takeshi Yamamuro commented on SPARK-28402:
------------------------------------------

I'll close for now because I think this is useless for Spark.

> Array indexing is 1-based
> -------------------------
>
>                 Key: SPARK-28402
>                 URL: https://issues.apache.org/jira/browse/SPARK-28402
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>    Affects Versions: 3.0.0
>            Reporter: Peter Toth
>            Priority: Major
>
> Array indexing is 1-based in PostgreSQL: [https://www.postgresql.org/docs/12/arrays.html]
>  
> {quote}The array subscript numbers are written within square brackets. By default PostgreSQL uses a one-based numbering convention for arrays, that is, an array of _{{n}}_ elements starts with {{array[1]}} and ends with {{array[_{{n}}_]}}.{quote}



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

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