Skip to content

Does snowflake_function (Resource) only support "string" return types ? or tables as well #705

Answered by BalaMuralibi
BalaMuralibi asked this question in Q&A
Discussion options

You must be logged in to vote

Please ignore my question , found answer. Resource support table, string , date etc ...

resource "snowflake_function" "fn" {
  database  = "DEMO"
  schema    = "DEMO"
  name      = "MyFUN"
  
  return_type ="TABLE (ID NUMBER)" 
      
  statement = <<-SQL
  select * from DEMO.NEWTABLE
  SQL
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by BalaMuralibi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant