Semantic SQL

•

Provides a three-microservice system for enterprise-grade SQL access control, semantic column mapping, and query safety over a PostgreSQL data warehouse.

The Semantic SQL system addresses common data warehouse challenges where similar concepts are represented by different column names across various tables and teams. It introduces a concept registry that allows columns to be tagged with semantic meanings at runtime, facilitating automatic JOIN path discovery between tables. Beyond semantic mapping, the system enforces robust access control via PostgreSQL Row-Level Security and application-layer checks, ensuring that users only access authorized rows and tables regardless of the SQL they write. It also features AST-based SQL validation to prevent unsafe queries, along with query caching and comprehensive audit logging, making it suitable for secure and efficient data exploration in complex, multi-team environments.

主な機能

01Query caching and full audit logging with user and RLS context
02Role-Based Access Control with API key authentication and team-scoped table access
03PostgreSQL Row-Level Security (RLS) policies for granular row-level data access
040 GitHub stars
05Semantic Column Mapper for automatic JOIN path discovery across diverse column names
06AST-based SQL validation to prevent DDL, DML, and unsafe function calls

ユースケース

01Implementing granular, role-based data access and row-level security in PostgreSQL data warehouses.
02Resolving inconsistencies in column naming to facilitate automatic JOIN path discovery for cross-team data querying.
03Enhancing SQL query safety and preventing unauthorized data manipulation or access in multi-team environments.