Data Sharing
Data Sharing lets data in Lakehouse be granted to other instances for access without any copying — the provider simply creates a Share object and grants access, and the consumer can immediately query the original data in real time. The data never leaves the provider's account.
Think of it like giving someone read-only access to your bookshelf rather than lending them a book. They can come and read whenever they want; the book stays with you, and you can revoke the key at any time. This is different from ETL sync: sync copies a book to the other party and both copies evolve independently; sharing means both parties use the same book, so any change the provider makes is immediately visible to the consumer.
Comparison with Other Data Exchange Methods
| Method | Data copied? | Latency | Consumer storage cost | Use cases |
|---|---|---|---|---|
| Data Sharing (Share) | No | Real-time | Zero | Real-time cross-team / cross-company collaboration |
| Data Sync (ETL) | Yes | Delayed | Full storage consumed | Cross-cloud scenarios, independent processing needed |
| File export | Yes | One-time | File storage consumed | Offline data exchange |
Core Mechanism
Data sharing is implemented through metadata authorization — no data is moved:
- Provider: Creates a Share object, adds tables/views to the Share, and configures which consumer instances are allowed access.
- Consumer: Runs
CREATE SCHEMA FROM SHAREto create a read-only Schema, then queries data through that Schema. - Real-time sync: When the provider's data changes, the consumer sees the latest data immediately without any action on their end.
- Independent compute: Consumer queries consume the consumer's own VCluster resources, independent of the provider.
Typical Use Cases
| Scenario | Approach |
|---|---|
| Cross-enterprise data collaboration | Company A shares sales data with partner B; B analyzes it in real time without building a sync pipeline. |
| Corporate master data distribution | Headquarters shares customer/product master data tables with business units; each unit gets real-time updates. |
| Data product delivery | A data service provider shares processed data products with customers, controlling access per customer. |
Quick Example
Common Issues
Issue 1: Cross-cloud / cross-region sharing fails
Problem: Attempting to share data from an Alibaba Cloud Shanghai instance to a Tencent Cloud instance.
Symptom: ADD INSTANCE executes successfully, but the consumer cannot access the data.
Solution: Data sharing only works within the same cloud provider and service region. For cross-cloud scenarios, use a data sync job to write data into the consumer's instance instead.
Issue 2: Sharing an entire table when only partial data is needed
Problem: You only want to share data for a specific merchant from the orders table, but you shared the entire table.
Solution: Create a View that filters the required data first, then add the View to the Share:
Issue 3: Consumer copies data for secondary use
Problem: The consumer uses CREATE TABLE AS SELECT to copy shared data out and re-shares it.
Solution: Share itself prevents secondary sharing, but it cannot stop the consumer from copying data. The provider needs to constrain the consumer's data usage at the agreement level and be selective about which tables to share.
Cost Impact
Storage Cost
- The consumer incurs no storage costs; data is stored at the provider.
- The Share object itself stores only metadata, at near-zero cost.
Compute Cost
- Provider: The Share itself incurs no compute costs.
- Consumer: Querying shared data consumes the consumer's own VCluster CRU, not the provider's.
Lifecycle Management
In This Section
| Page | Description |
|---|---|
| Data Sharing Object Model | Complete Share object description, core principles, and permission controls |
| Data Sharing Concepts | Provider/consumer roles, operation flow, and important notes |
Related Documentation
| Document | Description |
|---|---|
| Cross-Account Data Sharing Guide | End-to-end operation flow |
| Studio Data Sharing | Configure sharing via the Web UI |
| Data Sharing SQL Commands | Complete syntax for CREATE/ALTER/DROP SHARE |
