Hi - I am trying to create a table using sqlx. i have two file - 1. to declare a source table in BQ and 2. to create a table. When I execute the code, the 1st one goes through fine, however the 2nd one seems to be held up. Therefore the table is not created in bQ. The status for the 2nd one shows as ‘Pending: Waiting for upstream dependencies to complete’. Here’s the code for both below. i cannot find any errors in any of the logs as well and need to know how i can trouble-shoot the issue.
- Declare source with file name as ‘users.sqlx’.
config {
type: “declaration”,
database: “DB-prod”,
schema: “DB_changes_dataset_final”,
name: “users”,
}
- Create Table, with file name as ‘new-table.sqlx’
config { type: “table” }
SELECT * FROM ${ref(“users”)}
Any help will be appreciated.