Chapter 21. Data Analysis

Table of Contents

21.1. JSON Data
21.1.1. Extracting a Value from JSON Data (json_extract, json_extract_string)
21.1.2. Validating JSON Data (json_valid)
21.1.3. Retrieving JSON Data Type (json_type)
21.1.4. Retrieving JSON Keys (json_keys)
21.1.5. Retrieving the JSON Structure (json_structure)
21.1.6. Checking a JSON Value (json_contains)
21.1.7. Retrieving the JSON Array Length (json_array_length)
21.1.8. Transforming JSON Data (json_transform, json_transform_strict)
21.1.9. Aggregating Values into a JSON Array (json_group_array)
21.1.10. Aggregating Values into a JSON Object (json_group_object)
21.1.11. Aggregating JSON Data into a Structure (json_group_structure)
21.1.12. Parsing and Removing Whitespace from JSON Data (json)
21.2. MAP Data
21.2.1. Retrieving the Size of MAP Data (cardinality)
21.2.2. Retrieving a Value from MAP Data (map_extract_value)
21.2.3. Retrieving a Value from MAP Data as a List (map_extract)
21.2.4. Concatenating MAP Values (map_concat)
21.2.5. Checking a MAP Key (map_contains)
21.2.6. Checking a MAP Key-Value Pair (map_contains_entry)
21.2.7. Checking a MAP Value (map_contains_value)
21.2.8. Retrieving Key-Value Pairs from MAP Data (map_entries)
21.2.9. Retrieving Keys from MAP Data (map_keys)
21.2.10. Retrieving Values from MAP Data (map_values)
21.2.11. Creating MAP Data from Key-Value Pairs (map_from_entries)
21.2.12. Creating Empty MAP Data (map)
21.3. Data Sampling
21.3.1. Estimating the Number of Distinct Values (approx_count_distinct)
21.3.2. Sampling Table Rows (TABLESAMPLE)
21.4. Time-Based Data Analysis
21.4.1. Grouping Timestamps into Time Intervals (time_bucket)
21.4.2. Converting a Timestamp to a String (strftime)
21.4.3. Converting a String to a Timestamp (strptime)
21.4.4. Creating a Timestamp from Microseconds (make_timestamp)
21.4.5. Creating a Timestamp with Time Zone from Microseconds (make_timestamptz)

This chapter describes how to analyze data stored in analytical tables.

FAQ