Teradata · Arazzo Workflow
Teradata Submit Query and Poll for Results
Version 1.0.0
Submit a SQL query, poll its status until it completes, then branch on success or failure.
View Spec
View on GitHub
AnalyticsCloudData ManagementData WarehousingDatabaseEnterpriseMachine LearningSQLArazzoWorkflows
Provider
Workflows
poll-query-results
Submit a query and poll its status until it completes, then branch on the outcome.
Opens a session, submits the SQL statement, polls getQueryStatus on a loop while the query is still running, and routes to a completed or failed terminal step based on the final status.
1
openSession
createSession
Create a query session against the requested system.
2
submitQuery
executeQuery
Submit the SQL statement for execution and capture the query identifier so its status can be polled.
3
checkStatus
getQueryStatus
Retrieve the current status of the submitted query. While the status is still running the step loops back on itself; once the query is no longer running it routes to the completed or failed terminal step.
4
returnResults
getQueryStatus
Re-read the finished query to return the final result rows once it has completed successfully.
5
reportFailure
getQueryStatus
Re-read the failed query to surface the error message for the caller.