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 DataStream
  • PyFlink Common

pyflink.table.expressions.json_array_agg#

json_array_agg(on_null: pyflink.table.expression.JsonOnNull, item_expr) → pyflink.table.expression.Expression[source]#

Builds a JSON object string by aggregating items into an array.

Item expressions can be arbitrary, including other JSON functions. If a value is NULL, the on_null behavior defines what to do.

This function is currently not supported in OVER windows, unbounded session windows, or hop windows.

Examples:

>>> # '["Apple","Banana","Orange"]'
>>> orders.select(json_array_agg(JsonOnNull.NULL, col("product")))

New in version 1.12.0.

previous

pyflink.table.expressions.json_array

next

pyflink.table.expressions.call

Show Source

Created using Sphinx 4.5.0.