When a port delay stalls freight on Monday morning, retail teams have minutes—not hours—to see which delayed shipments put high-margin customer orders at risk. In most companies, however, that single answer is split across three separate platforms: live checkout orders in BigQuery, supplier margins in Databricks Unity Catalog, and shipment events on Amazon S3 behind AWS Glue.
Traditionally, answering that question meant choosing between 4–6 hour batch copy pipelines or paying ~$31,104/month in repeat cloud egress fees every time dashboards and AI agents scanned remote storage.
With cross-cloud federated catalogs and cross-cloud caching in Google Cloud Lakehouse (formerly BigLake), you can leave your data where it lives, query all three platforms in seconds from BigQuery, and cut repeat cross-cloud egress by 92%–98% at $0 additional Google Cloud cache fee.
Proof-of-concept note: This walkthrough shares results from an educational cloud practitioner proof of concept. Always consult the official Google Cloud Lakehouse, Databricks, and AWS Glue documentation before deploying to production.
Why Google Cloud Lakehouse beats batch copies and uncached queries
- Zero data copies: Google Cloud Lakehouse syncs Apache Iceberg table pointers in the background from Databricks Unity Catalog, AWS Glue, Snowflake Horizon, and Workday Data Lake. For raw, non-Iceberg files (CSV, JSON, or standalone Parquet) in Amazon S3 and Azure Data Lake Storage, BigQuery cross-cloud connections query remote buckets directly using standard Google Cloud BigQuery compute—unlocking full BigQuery AI and Gemini parity.
- Sub-file regional caching at $0 extra fee: Instead of copying multi-gigabyte files, cross-cloud caching stores only the Parquet column chunks and dictionary pages your query touches inside your Google Cloud region (
us-east4). Cached blocks are encrypted at rest with Google-managed encryption keys, isolated strictly by project and catalog, expired automatically when unreferenced, and verified against remote metadata and access permissions before every read. - Under 5% transferred across clouds: Combining standard Iceberg Zstandard compression (~8:1) with an 80% regional cache hit means you transfer ~26 GiB for every 1 TiB of logical data processed (under 3%)—cutting repeat egress fees by 92%–98% when paired with Partner Cross-Cloud Interconnect.
- Zero static keys: OpenID Connect trust and short-lived token vending replace static cloud keys, pairing with Google Cloud Knowledge Catalog lineage and Iceberg row/column masking across BigQuery, BigQuery AI, Managed Service for Apache Spark, and Google Agent Development Kit agents.
How the three-cloud architecture works
In our OmniRetail Horizon supply chain scenario, three independent platforms stay in their native clouds and are joined together on the fly inside BigQuery:
| Dataset | Where it lives | How BigQuery reads it |
|---|---|---|
| Customer orders | Google Cloud BigQuery (us-east4) |
Native table (commerce_core.orders) |
| Supplier risk and margins | Standalone Databricks (Unity Catalog) |
Federated Iceberg UniForm catalog (dbx_unity_merch) |
| Carrier shipment delays | AWS Cloud (AWS Glue + Amazon S3, us-east-1) |
Federated Apache Iceberg catalog (aws_glue_logistics) |
Google Cloud Lakehouse sits in the middle as the unified metadata and security bridge. It syncs table schemas from AWS Glue and Databricks every five minutes, translates access using secretless trust or Regional Secret Manager, and caches hot Parquet blocks inside us-east4.
Query all three clouds in place with BigQuery, BigQuery AI, and Apache Spark
Once the external catalogs are registered, BigQuery queries AWS and Databricks tables using simple 4-part names (project.catalog.namespace.table). You can join across all three clouds and even call Gemini 4 (AI.GENERATE) directly inside the same SQL statement:
SELECT
o.customer_region,
m.category,
r.supplier_name,
s.carrier,
s.delay_hours,
ROUND(SUM(o.quantity * (o.unit_sale_price_usd - m.unit_cost_usd)), 2) AS gross_margin_exposure_usd,
AI.GENERATE(
CONCAT(
'Recommend an expedite action for ', m.category, ' on ', s.carrier,
' delayed ', CAST(s.delay_hours AS STRING), 'h.'
),
endpoint => 'gemini-4-hydrogen',
output_schema => 'expedite_priority STRING, recommended_action STRING'
) AS action_plan
FROM `<PROJECT_ID>.commerce_core.orders` AS o
JOIN `<PROJECT_ID>.dbx_unity_merch.supply_chain.sku_margins` AS m ON o.sku_id = m.sku_id
JOIN `<PROJECT_ID>.dbx_unity_merch.supply_chain.supplier_risk_scores` AS r ON m.supplier_id = r.supplier_id
JOIN `<PROJECT_ID>.aws_glue_logistics.fulfillment.shipment_events` AS s ON o.order_id = s.order_id
WHERE o.order_ts >= TIMESTAMP_SUB(CURRENT_TIMESTAMP(), INTERVAL 7 DAY)
AND (s.delay_hours > 12 OR r.geopolitical_risk_score >= 0.65)
GROUP BY 1, 2, 3, 4, 5
ORDER BY gross_margin_exposure_usd DESC;
Data science teams can also read those exact same Iceberg tables from Managed Service for Apache Spark using short-lived vended credentials—no static cloud keys on Spark clusters.
Proving cross-cloud caching with live results
To verify that Google Cloud Lakehouse really eliminates repeat remote storage reads, we ran the 3-platform join twice with BigQuery’s SQL result cache turned off (--nouse_cache). Turning off the SQL result cache forces BigQuery to read from storage on every run—showing exactly what the Lakehouse regional cache does under the hood.
Live three-cloud join output
Both runs identified $39,202.00 in exposed gross margin across $72,250.00 of delayed orders, while automatically skipping healthy on-time shipments:
| Region | Category | Supplier | Carrier | Delay | Revenue at risk | Margin exposure |
|---|---|---|---|---|---|---|
US-NORTHEAST |
Apparel |
Pacific Rim Textiles |
PacificAirCargo |
19h |
$40,120.00 |
$24,412.00 |
US-NORTHEAST |
Electronics |
Apex MicroSystems |
OceanicExpress |
28h |
$17,880.00 |
$7,740.00 |
US-WEST |
Packaging |
Great Lakes Packaging |
GreatLakesRail |
36h |
$14,250.00 |
$7,050.00 |
Measured cold versus warm storage reads
Run (--nouse_cache) |
Remote cloud bytes read | Google Cloud regional cache read | Cache hit ratio |
|---|---|---|---|
| Run 1 (Cold) | 9,103 bytes |
3,175 bytes |
25.86% (warms cache) |
| Run 2 (Warm) | 0 bytes |
12,278 bytes |
100.0% ($0 AWS egress) |
At enterprise scale, sub-file caching keeps paying off even when analysts or AI agents modify their queries to add new joins or dimensions—because previously queried Parquet column chunks stay cached locally while only newly requested columns cross the wire. In Google Cloud’s 10 TiB benchmark, a follow-on query adding a shipping dimension achieved a 94.8% cache hit rate, transferring just 1.4 GB of new bytes across clouds. Combined with Iceberg Zstandard compression (8.9:1 in that benchmark), organizations routinely transfer under 5% of logical data processed—lowering 30-day AWS egress in our 48 GB agent model from $31,104/month to $2,488/month, or $553/month over Cross-Cloud Interconnect.
Meet the tiered Gemini 4 multi-agent copilot
Instead of making business users write 4-part SQL queries by hand, Google Agent Development Kit 2.15 routes each question across three specialist Gemini 4 agents:
analyst = Agent(
name="cross_cloud_supply_chain_analyst",
model="gemini-4-carbon",
tools=[bq_toolset, bq_skills, discover_federated_catalog_tables],
)
finops = Agent(
name="finops_cache_telemetry_advisor",
model="gemini-4-hydrogen",
tools=[inspect_bigquery_job_cache_stats, simulate_agentic_burst_finops],
)
root_agent = Agent(
name="lakehouse_practitioner_copilot",
model="gemini-4-neon",
sub_agents=[analyst, finops],
)
- Coordinator (
gemini-4-neon): Understands the user’s question quickly and delegates work. - Data Analyst (
gemini-4-carbon): Discovers 4-part federated schemas and runs read-protected BigQuery SQL andAI.FORECASTqueries. - FinOps Advisor (
gemini-4-hydrogen): ChecksobjectStorageStatson the latest BigQuery job and reports exact cache savings.
Here is the live Agent Development Kit Web UI answering a multi-cloud margin risk and cache telemetry question end to end—confirming 100% regional cache efficiency (12,350 bytes cached, 0 remote bytes read):
Five practical lessons from running this live
Testing this across real Google Cloud, AWS, and Databricks accounts taught us five things worth knowing upfront:
- Databricks Free Edition works on AWS with self-assuming IAM roles: AWS-hosted Free Edition workspaces allow external locations backed by Amazon S3, as long as the AWS IAM role trusts both the Databricks Unity Catalog master role (
ExternalId) and itself. - Generate Databricks OAuth secrets with the
all-apisscope: When creating a Service Principal OAuth secret for Lakehouse federation, pick a 1–730 day lifetime and theall-apisscope rather than a SQL-only BI scope. - Allow ~30 seconds for the first metadata sync: After creating a federated catalog, Google Cloud Lakehouse takes roughly 25–35 seconds to complete its initial background table discovery from AWS Glue or Unity Catalog.
- Separate Gemini API key auth from BigQuery credentials: If you run the agent locally with an AI Studio API key (
GOOGLE_API_KEY), disable Vertex AI routing (GOOGLE_GENAI_USE_VERTEXAI=FALSE) while keeping Application Default Credentials active for BigQuery queries. - Keep agent roles focused: Letting the SQL analyst delegate BigQuery job telemetry checks to the lightweight FinOps advisor prevents large job-metadata payloads from crowding out the final answer.
Business outcomes
| Metric | Legacy batch pipelines / uncached federation | Google Cloud Lakehouse + Gemini | Outcome |
|---|---|---|---|
| Time to insight | 4–6 hours |
< 5 seconds |
Spot and expedite at-risk orders immediately |
| Warm cache hit rate | 0% |
100% POC · 96.25% enterprise |
Verified 0 bytes remote S3 egress on warm runs |
| 30-day cloud egress | $31,104/mo |
$2,488/mo ($553/mo w/ Interconnect) |
92%–98.2% egress saved at $0 GCP cache fee |
| Pipeline maintenance | Fragile sync jobs + static keys | 0 copy pipelines · 0 static keys |
Zero duplicate storage and simpler governance |
Real-world use cases for Google Cloud Lakehouse
The exact same zero-copy federation and regional caching pattern unlocks high-value cross-cloud workflows across industries:
- Post-merger financial close (
Snowflake Horizon+Databricks+BigQuery): Reconcile acquired billing ledgers and core finance actuals on day one without waiting six months for a warehouse migration. - Workforce and fulfillment planning (
Workday Data Lake+AWS Glue+BigQuery): Match live warehouse shipment delays against regional shift capacity while keeping sensitive human-resources columns masked in place. - AI-assisted cyber threat hunting (
Amazon S3+BigQuery+Gemini 4): Let security analysts and AI agents run dozens of iterative pivot queries over cloud audit logs at $0 repeat cross-cloud egress once hot blocks are cached. - Customer 360 and demand forecasting (
Managed Spark+BigQuery AI): Enrich Spark clickstream cohorts with zero-shotAI.FORECASTdemand curves directly in SQL without duplicating raw lake files. - Regulated clinical and life-sciences research (
Databricks Unity Catalog+BigQuery): Query multi-institution cohorts across clouds while enforcing row-level access policies and full per-user audit trails.
Key takeaways and next steps
You do not need another cross-cloud copy pipeline to bring BigQuery, BigQuery AI, and Gemini 4 agents to data stored in AWS or Databricks. With Google Cloud Lakehouse, you keep data in open Apache Iceberg tables where it lives, refresh new snapshots automatically without stale caches, and absorb repetitive analytical and agentic bursts in your regional cache at $0 extra Google Cloud fee.
Recommended next steps
- Test caching on one live external table: Register a single AWS Glue, Databricks Unity Catalog, Snowflake Horizon, or Workday Data Lake catalog with
--cross-cloud-cache="enabled"in a region paired closely with your storage (such asus-east4next to AWSus-east-1), then verifyobject_storage_statsin BigQuery Studio. - Explore the runnable proof of concept: Run the offline FinOps simulator, live change-percolation test, and Agent Development Kit copilot from the companion repository on GitHub:
cmanikandan/gcp-borderless-lakehouse-adk. - Harden for production scale: Pair cross-cloud caching with BigQuery Project Caps (so exploratory AI agents never starve executive dashboards), switch Databricks federation to OpenID Connect user identity federation for per-user audit trails, and route high-volume traffic over Cross-Cloud Interconnect with VPC Service Controls.
Which external catalog—Databricks, AWS Glue, Snowflake Horizon, or Workday Data Lake—would save your team the most time to query in place with Google Cloud Lakehouse and BigQuery? Share your thoughts in the comments!
References and community resources
- Official documentation: Accelerating the borderless Lakehouse blog · Google Cloud Lakehouse release notes · Cross-cloud caching · Databricks setup · AWS Glue setup · Snowflake Horizon · Workday Data Lake · BigQuery AI · Google Agent Development Kit for BigQuery
- Google Developer Program forums: Tips and tricks for the forums · Navigating the forums · Community guidelines and FAQ








