Ctrl+K
Logo image Logo image

Site Navigation

  • API Reference
  • Examples

Site Navigation

  • API Reference
  • Examples

Section Navigation

  • PyFlink Table
  • PyFlink DataFrame
    • DataFrame
    • DataFrame Creation
    • Input/Output
    • SQL
    • Data Types
    • User Defined Functions
    • Configuration
    • Catalog
    • GPU Support
    • AI / LLM
  • PyFlink Multimodal
  • PyFlink DataStream
  • PyFlink Common

pyflink.dataframe.DataFrame.union#

DataFrame.union(other: pyflink.dataframe.dataframe.DataFrame) → pyflink.dataframe.dataframe.DataFrame[source]#

Union with another DataFrame, removing duplicate rows.

Schema compatibility is checked by column position, not by column name. Each pair of columns must be castable to a common type. The result uses this DataFrame’s column names and the common types.

Note

This operation is only supported in batch mode.

Parameters

other – Right DataFrame.

Returns

A new DataFrame containing distinct rows from both DataFrames.

previous

pyflink.dataframe.DataFrame.join_lateral

next

pyflink.dataframe.DataFrame.union_all

Show Source

Created using Sphinx 4.5.0.