sqlmesh icon indicating copy to clipboard operation
sqlmesh copied to clipboard

target.schema should return the schema for the environment being evaluated

Open crericha opened this issue 2 years ago • 2 comments

dbt users expect target.schema to point to the schema for their active environment (aka target). sqlmesh should match that behavior to support run-time adapter queries that dynamically fetch tables.

crericha avatar Jun 15 '23 22:06 crericha

@crericha is this still an issue?

tobymao avatar Aug 10 '23 20:08 tobymao

Yes, still an issue. target.schema will point to prod. It's unclear to me what schema should be provided as the snapshot may be shared by multiple environments. We'll need to talk through this one.

crericha avatar Aug 10 '23 20:08 crericha