cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Administration & Architecture
Explore discussions on Databricks administration, deployment strategies, and architectural best practices. Connect with administrators and architects to optimize your Databricks environment for performance, scalability, and security.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

How to create a function using the functions API in databricks?

chinmay0924
New Contributor III

https://docs.databricks.com/api/workspace/functions/create

This documentation gives the sample request payload, and one of the fields is type_json, and there is very little explanation of what is expected in this field. What am I supposed to pass here?

 

1 ACCEPTED SOLUTION

Accepted Solutions

SP_6721
Contributor III

Hi @chinmay0924 ,

The type_json field describes your functionโ€™s input parameters and return type using a specific JSON format. Youโ€™ll need to include each parameterโ€™s name, type (like "STRING", "INT", "ARRAY", or "STRUCT"), and position, along with the return type.

View solution in original post

1 REPLY 1

SP_6721
Contributor III

Hi @chinmay0924 ,

The type_json field describes your functionโ€™s input parameters and return type using a specific JSON format. Youโ€™ll need to include each parameterโ€™s name, type (like "STRING", "INT", "ARRAY", or "STRUCT"), and position, along with the return type.

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local communityโ€”sign up today to get started!

Sign Up Now