The variables in the example above are for one mapping with BigQuery.
Querying for Import Jobs
You can query for table import jobs using a Space node.
query {
node(id: "space_id") {
... on Space {
tableJobs(first: 50) {
edges {
node {
id
modelName
jobStatus
totalQueriesFailedCount
totalQueriesSuccessCount
}
}
}
}
}
}
If you have a large number of import jobs, use pagination for the complete list to view or use in your queries/mutations.
Query for fields directly from a specific import job using the TableImportJob node and ID.
To view the queries for a given import job, use the TableImportJobQueryConnection that returns the total number of queries and information on the individual queries.
If you are connecting to a warehouse or table for the first time, please complete the one-time permissions setup. For assistance, contact support@arize.com.
Step 1: Create Table Job
To enable event-driven ingestion, set up the table connection and initialize the job by running the following mutation:
Once the job is created, query for the jobId by running the following query:
query queryTableJobId {
node(id: "spaceId") {
... on Space {
tableJobs(first: 1){
edges{
node{
id
jobId
}
}
}
}
}
}
Step 3: Trigger a query
After the job is created, trigger a query for data within the specified time range using the following mutation:
mutation TriggerTableRun {
createTriggeredOngoingTableRun(input: {
jobId:"<ID from above query>",
queryStart: "2024-08-20T01:00:00Z", #desired start time for query
queryEnd: "2024-08-20T23:00:00Z", #desired end time for query
}) {
clientMutationId
}
}
Deleting Import Jobs
Delete an import job by using the deleteTableImportJob mutation and job ID.
Learn how to map your data with each warehouse for Snowflake, Databricks, and BigQuery. Use the GraphQL docs for a list of all the available fields for a query/mutation.