Ctrl+K
Logo image Logo image

Site Navigation

  • API Reference
  • Examples

Site Navigation

  • API Reference
  • Examples

Section Navigation

  • PyFlink Table
    • TableEnvironment
    • Table
    • Data Types
    • Window
    • Expressions
    • User Defined Functions
    • Descriptors
    • StatementSet
    • Catalog
  • PyFlink DataFrame
  • PyFlink Multimodal
  • PyFlink DataStream
  • PyFlink Common

pyflink.table.expressions.map_from_arrays#

map_from_arrays(key, value) → pyflink.table.expression.Expression[source]#

Creates a map from an array of keys and an array of values.

Example:

>>> tab.select(
>>>     map_from_arrays(
>>>         array("key1", "key2", "key3"),
>>>         array(1, 2, 3)
>>>     ))

Note

both arrays should have the same length.

New in version 1.12.0.

previous

pyflink.table.expressions.map_

next

pyflink.table.expressions.row_interval

Show Source

Created using Sphinx 4.5.0.