[ 
https://issues.apache.org/jira/browse/FLINK-40434?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Liu Liu updated FLINK-40434:
----------------------------
    Description: 
Support the following usage:
{code:java}
class Output(TypedDict):
    value: int

def expand(row: Dict[str, Any]) -> Iterator[Output]:
    yield {"value": row["x"]}
    yield {"value": row["x"] + 1}

df.flat_map(expand){code}
 

 

  was:
Support the following usage:

{{}}
{code:java}
class Output(TypedDict):
    value: int

def expand(row: Dict[str, Any]) -> Iterator[Output]:
    yield {"value": row["x"]}
    yield {"value": row["x"] + 1}

df.flat_map(expand){code}
{{}}

 


> Add flat_map support to DataFrame API
> -------------------------------------
>
>                 Key: FLINK-40434
>                 URL: https://issues.apache.org/jira/browse/FLINK-40434
>             Project: Flink
>          Issue Type: Sub-task
>          Components: API / Python
>            Reporter: Liu Liu
>            Priority: Major
>
> Support the following usage:
> {code:java}
> class Output(TypedDict):
>     value: int
> def expand(row: Dict[str, Any]) -> Iterator[Output]:
>     yield {"value": row["x"]}
>     yield {"value": row["x"] + 1}
> df.flat_map(expand){code}
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to