Click to copy

• Reviewed for ksqlDB 0.29

How to Filter Array Values in ksqlDB

To filter an array of measurements by removing any values under 5.6, you can:

SELECT 
  FILTER(measurements, x => x > 5.6)
FROM earthquake;

The earthquake stream was created as follows:

CREATE STREAM earthquake (
  measurements ARRAY<DOUBLE>,
) WITH (...)
Discover what readers are saying
topictale
Get easy to digest how-tos on ksqlDB
Sign up
Please read our Privacy Policy to understand how we protect and manage your data.
You may also like