on 2025 Apr 10 6:55 PM
Anyone know a way to replace my Remote table so it stays the same name in the same space so all my queries it is shared to in other spaces still work?
Appreciate any suggestions.
Bart
Request clarification before answering.
Hi,
In our Datasphere setup, we replicate tables from ECC and use them across multiple SQL models and views. Due to limitations in our SAC version (no real-time replication support) and the absence of SLT, we had to optimize replication by splitting large remote tables into historical and current datasets.
Here’s a simplified version of what we did using BSEG as an example:
We created:
h_BSEG: remote table with data <= 2024
c_BSEG: remote table with data >= 2025
Our goal: only replicate changes in c_BSEG, saving time and load.
Then we created a view:
SELECT * FROM h_BSEG
UNION ALL
SELECT * FROM c_BSEG
This gives us a unified view of the full dataset, which we intended to replace the original BSEG remote table with — so that existing queries and views across other spaces would continue working.
The original BSEG remote table has many dependencies (queries, models, shares), so deleting or renaming it wasn’t straightforward.
Rename/Delete + Replace:
Delete BSEG, reimport it as z_BSEG_original.
Then create a new view named BSEG (with union logic).
Re-share it to consuming spaces.
Requires managing dependencies during the switch.
Alias View (BSEG_union)
Create a union view under a new name (BSEG_union).
Update queries manually to use it.
Less risk, more manual work downstream.
Replace Shared Object
If BSEG is only used as a shared artifact:
Unshare → delete remote table → create view → share under same name.
Consumers still see BSEG — now backed by the union view.
A stable semantic layer (views with fixed names) is invaluable — you can evolve logic behind the scenes without disrupting consumers.
Planning for decoupled access and layering helps maintain agility and avoid heavy refactoring.
If anyone’s faced something similar or has additional strategies for managing dependencies when replacing remote tables with views — would love to hear them!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 7 | |
| 6 | |
| 6 | |
| 6 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 3 | |
| 3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.