YMatrix
Quick Start
Simulate Time Series Scenarios
Standard Cluster Deployment
Data Modeling
Connecting to The database
Data Writing
Data Migration
Data Query
Scene Application Examples
Federal Query
Maintenance and Monitoring
Global Maintenance
Partition Maintenance
Backup and Restore
Cluster Expansion
Monitoring
Performance Tuning
Troubleshooting
Reference Guide
Tool Guide
Data Type
Storage Engine
Execution Engine
Configuration Parameters
SQL Reference
FAQ
Federated queries are to access external data sources through YMatrix, including MySQL, PostgreSQL and other databases. The reading and writing process is like accessing YMatrix internal data tables.
Federal queries are implemented using Foreign Data Wrapper (FDW). FDW is a Postgres implementation developed by SQL standard SQL/MED (SQL Management of External Data). FDW provides a unified series of common interfaces, allowing extensions to easily integrate deeply in core parts such as optimization, execution, scanning, update and statistics, and Postgres, allowing direct query and manipulation of external data sources with SQL statements. For example, FDW for MySQL, you can directly query, sort, group, filter, join, and even insert and update MySQL data like operating on local tables. There are already many FDW extensions in the community, including commonly used databases, and access to local files, HDFS, etc.
This section of the documentation will explain how to use FDW to access PostgreSQL, MySQL, MongoDB, and how to use PXF to access HDFS, Hive ORC, and more.