[
https://issues.apache.org/jira/browse/FLINK-3993?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15309918#comment-15309918
]
ASF GitHub Bot commented on FLINK-3993:
---------------------------------------
Github user omaralvarez commented on the pull request:
https://github.com/apache/flink/pull/2055
I think, everything should be ready now. Although while performing testing,
I have found something that I think is not ideal.
If we use this code:
```python
env.generate_sequence(1, 5)\
.map(Id()).map_partition(Verify([1,2,3,4], "Sequence")).output()
```
The Verify() function will error out with `IndexError: list index out of
range`, this is not ideal, since it should raise a Flink testing exception. I
could also try to fix this if needed.
> [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)