You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Martin Senne (JIRA)" <ji...@apache.org> on 2015/10/05 11:44:26 UTC
[jira] [Updated] (SPARK-10868) monotonicallyIncreasingId() supports
offset for indexing
[ https://issues.apache.org/jira/browse/SPARK-10868?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Senne updated SPARK-10868:
---------------------------------
Description:
With SPARK-7135 and https://github.com/apache/spark/pull/5709 `monotonicallyIncreasingID()` allows to create an index column with unique ids. The indexing always starts at 0 (no offset).
**Feature wish**: Having a parameter `offset`, such that the function can be used as
{{monotonicallyIncreasingID( offset )}}
and indexing *starts at `offset` instead of 0*.
**Background and justification**:
Additional row for a DataFrame that is written to a DB (via .jdbc).
In detail:
- A DataFrame A (containing an ID column) and having indices from 0 to 199 in that column.
-
-
was:
With SPARK-7135 and https://github.com/apache/spark/pull/5709 `monotonicallyIncreasingID()` allows to create an index column with unique ids. The indexing always starts at 0 (no offset).
Feature wish: Having a parameter `offset`, such that the function can be used as
{{monotonicallyIncreasingID( offset )}}
and indexing *starts at `offset` instead of 0*.
> monotonicallyIncreasingId() supports offset for indexing
> --------------------------------------------------------
>
> Key: SPARK-10868
> URL: https://issues.apache.org/jira/browse/SPARK-10868
> Project: Spark
> Issue Type: New Feature
> Components: SQL
> Affects Versions: 1.5.0
> Reporter: Martin Senne
>
> With SPARK-7135 and https://github.com/apache/spark/pull/5709 `monotonicallyIncreasingID()` allows to create an index column with unique ids. The indexing always starts at 0 (no offset).
> **Feature wish**: Having a parameter `offset`, such that the function can be used as
> {{monotonicallyIncreasingID( offset )}}
> and indexing *starts at `offset` instead of 0*.
> **Background and justification**:
> Additional row for a DataFrame that is written to a DB (via .jdbc).
> In detail:
> - A DataFrame A (containing an ID column) and having indices from 0 to 199 in that column.
> -
> -
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org