We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
execute SQL statements using Terraform I can see it can be possible using API as bellow, https://docs.databricks.com/api/workspace/statementexecution/executestatement
but I want to know is a strength way to run like bellow code
provider "databricks" { host = var.databricks_host token = var.databricks_token }
resource "databricks_sql_query" "example" { name = "example-query" data_source_id = var.data_source_id query = "SELECT * FROM your_table" }
resource "local_file" "query_result" { content = jsonencode(databricks_sql_query.example.output) filename = "${path.module}/query_result.json" }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
execute SQL statements using Terraform
I can see it can be possible using API as bellow,
https://docs.databricks.com/api/workspace/statementexecution/executestatement
but I want to know is a strength way to run like bellow code
provider "databricks" {
host = var.databricks_host
token = var.databricks_token
}
resource "databricks_sql_query" "example" {
name = "example-query"
data_source_id = var.data_source_id
query = "SELECT * FROM your_table"
}
resource "local_file" "query_result" {
content = jsonencode(databricks_sql_query.example.output)
filename = "${path.module}/query_result.json"
}
The text was updated successfully, but these errors were encountered: