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
    • TableEnvironment
    • Table
    • Data Types
    • Window
    • Expressions
    • User Defined Functions
    • Descriptors
    • StatementSet
    • Catalog
  • PyFlink DataStream
  • PyFlink DataFrame
  • PyFlink Common
  • API Reference
  • PyFlink Table
  • Expressions
  • pyflink.table.expressions.map_from_arrays

pyflink.table.expressions.map_from_arrays#

map_from_arrays(key, value) → 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.

Added in version 1.12.0.

previous

pyflink.table.expressions.map_

next

pyflink.table.expressions.row_interval

On this page
  • map_from_arrays()

This Page

  • Show Source

Created using Sphinx 7.4.7.

Built with the PyData Sphinx Theme 0.16.1.