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.DataType.row#

classmethod DataType.row(fields: Union[Dict[str, pyflink.dataframe.datatype.DataType], List[tuple]]) → pyflink.dataframe.datatype.DataType#

Struct/Row type with named fields.

Parameters

fields – Either a dict of {name: type} or list of (name, type) tuples.

Example::
>>> DataType.struct({"name": DataType.string(), "age": DataType.int32()})
>>> DataType.struct([("name", DataType.string()), ("age", DataType.int32())])

previous

pyflink.dataframe.DataType.struct

next

pyflink.dataframe.DataType.tensor

Show Source

Created using Sphinx 4.5.0.