You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/05/31 11:30:13 UTC
[jira] [Commented] (FLINK-3993) [py] Add generateSequence() support
to Python API
[ https://issues.apache.org/jira/browse/FLINK-3993?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15307595#comment-15307595 ]
ASF GitHub Bot commented on FLINK-3993:
---------------------------------------
GitHub user omaralvarez opened a pull request:
https://github.com/apache/flink/pull/2055
[FLINK-3993] [py] Add generateSequence() support to Python API
Addition of generate_sequence to python API:
`data = env.generate_sequence(1,20)`
If a parallel number source was needed, there was no option to create it, since from_elements() is not parallel.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/omaralvarez/flink python_sequence
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/flink/pull/2055.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #2055
----
commit 8cb742bcbf8dde0d910360a18e9509117363c41d
Author: omaralvarez <om...@udc.es>
Date: 2016-05-31T11:23:38Z
[FLINK-3993] [py] Add generateSequence() support to Python API
----
> [py] Add generateSequence() support to Python API
> -------------------------------------------------
>
> Key: FLINK-3993
> URL: https://issues.apache.org/jira/browse/FLINK-3993
> Project: Flink
> Issue Type: Improvement
> Components: Python API
> Affects Versions: 1.0.3
> Reporter: Omar Alvarez
> Priority: Minor
> Original Estimate: 24h
> Remaining Estimate: 24h
>
> Right now, I believe that there is only from_elements() support in order to create a sequence of numbers. It is interesting to be able to create a list of numbers from the Python API also, apart from the Java API. It would not be complicated, since we already have generateSequence(). I am already working on this, and will create a pull request shortly in Github.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)