Skip to main content
Ctrl+K
PyFlink 1.20+vvr.11.7.dev0 documentation - Home PyFlink 1.20+vvr.11.7.dev0 documentation - Home
  • API Reference
  • Examples
  • API Reference
  • Examples

Section Navigation

  • PyFlink Table
  • PyFlink DataStream
  • PyFlink DataFrame
    • DataFrame
    • DataFrame Creation
    • Input/Output
    • SQL
    • DataType
    • User Defined Functions
    • Configuration
    • GPU Support
    • AI / LLM
  • PyFlink Common
  • API Reference
  • PyFlink DataFrame
  • DataType
  • pyflink.dataframe.datatype.DataType.struct

pyflink.dataframe.datatype.DataType.struct#

classmethod DataType.struct(fields: Dict[str, DataType] | List[tuple]) → DataType[source]#

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.DataType.map

next

pyflink.dataframe.datatype.DataType.tensor

On this page
  • DataType.struct()

This Page

  • Show Source

Created using Sphinx 7.4.7.

Built with the PyData Sphinx Theme 0.16.1.