Dynamic Schema Inference for Semi-structured Data Analysis

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Traditional database systems are inadequate for handling semi-structured data, as they require predefined schemas, are not interactive, and lack efficient query processing capabilities, leading to cumbersome and expensive data analysis processes.

Innovation Solution

A scalable interactive database platform that dynamically infers schemas from semi-structured data, stores it in indexes for fast query response, and provides a SQL-compliant interface for querying, enabling interactive and exploratory analysis without predefining schemas.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Adaptability or versatility

If traditional database systems use predefined schemas for data storage, then data structure consistency is maintained, but flexibility in handling semi-structured data and speed of data analysis are reduced

Engineering Contradiction:
Improveflexibility in handling semi-structured dataVSAvoidspeed of data analysis
Core Design Contradiction:
Adaptability or versatilityVSProductivity

Solution Approach 1:

The system dynamically infers schemas from semi-structured data at query time rather than using static predefined schemas. The schema inference engine analyzes the structure of incoming queries and automatically generates appropriate SQL schemas, allowing the system to adapt to different data formats and structures without requiring manual schema definition or ETL processes.

Inventive Principle:
Principle #15Dynamics

2Reliability

If traditional database systems require ETL processes for data preparation, then data quality and consistency are improved, but complexity and cost of data analysis increase

Engineering Contradiction:
Improvedata qualityVSAvoidcomplexity of data analysis process
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The system performs self-service schema inference by automatically analyzing the structure of semi-structured data and generating appropriate SQL schemas without requiring manual ETL processes. The schema inference engine autonomously handles data preparation tasks including type inference, null value handling, and schema generation, eliminating the need for complex data preparation pipelines while maintaining data quality.

Inventive Principle:
Principle #25Self-service

3Quantity of substance

If database systems use block-addressable persistent storage with fixed minimum access units, then storage efficiency is improved, but query response time and interactivity deteriorate

Engineering Contradiction:
Improvestorage efficiencyVSAvoidquery response time
Core Design Contradiction:
Quantity of substanceVSSpeed

Solution Approach 1:

The system segments data access operations to match query patterns rather than fixed block sizes. The query translator breaks down complex queries into smaller operational steps that can be executed efficiently on semi-structured data, allowing selective access to only the portions of data needed for each query, thereby improving response time while maintaining storage efficiency.

Inventive Principle:
Principle #1Segmentation

4Device complexity

If traditional database systems tightly integrate query execution with storage back-end, then system simplicity is maintained, but scalability and performance for large-scale data analysis are reduced

Engineering Contradiction:
Improvesystem architecture simplicityVSAvoidperformance for large-scale data analysis
Core Design Contradiction:
Device complexityVSProductivity

Solution Approach 1:

The system introduces a query translator as an intermediary layer between the query execution engine and the semi-structured data storage. This translator converts user queries into appropriate operational steps without requiring tight integration with the storage back-end, enabling the system to scale to large data volumes while maintaining architectural simplicity. The translator handles schema inference and query optimization independently of the storage layer.

Inventive Principle:
Principle #24Intermediary (Mediator)

Data Source

PatentUS10095732B2Scalable analysis platform for semi-structured data
Publication Date: 2018.10.09 AMAZON TECH INC
  • US10095732B2 patent drawing
  • US10095732B2 patent drawing
  • US10095732B2 patent drawing

AI summary

A method of operating a query system includes retrieving objects from a data source. Each of the retrieved objects includes (i) data and (ii) metadata describing the data. The method further includes dynamically creating a cumulative schema. The dynamically creating includes, for each object of the retrieved objects, (i) inferring a schema from the object based on the metadata of the object and inferred data types of elements of the data of the object, (ii) creating a unified schema, and (iii) storing the unified schema as the cumulative schema. The unified schema describes both (a) the object described by the inferred schema and (b) a cumulative set of objects described by the cumulative schema. The method further includes storing the data of each of the retrieved objects in a storage service.