<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic While creating a UDF in databricks SQL, how can I declare a local variable? 
Something like this?
CREATE OR REPLACE FUNCTION len()
set myString = 'my value';
  RETURNS INT  
  RETURN length(myString); in missing-QuestionPost</title>
    <link>https://community.databricks.com/t5/missing-questionpost/while-creating-a-udf-in-databricks-sql-how-can-i-declare-a-local/m-p/3333#M96</link>
    <description />
    <pubDate>Fri, 09 Jun 2023 13:26:17 GMT</pubDate>
    <dc:creator>RV</dc:creator>
    <dc:date>2023-06-09T13:26:17Z</dc:date>
    <item>
      <title>While creating a UDF in databricks SQL, how can I declare a local variable? 
Something like this?
CREATE OR REPLACE FUNCTION len()
set myString = 'my value';
  RETURNS INT  
  RETURN length(myString);</title>
      <link>https://community.databricks.com/t5/missing-questionpost/while-creating-a-udf-in-databricks-sql-how-can-i-declare-a-local/m-p/3333#M96</link>
      <description />
      <pubDate>Fri, 09 Jun 2023 13:26:17 GMT</pubDate>
      <guid>https://community.databricks.com/t5/missing-questionpost/while-creating-a-udf-in-databricks-sql-how-can-i-declare-a-local/m-p/3333#M96</guid>
      <dc:creator>RV</dc:creator>
      <dc:date>2023-06-09T13:26:17Z</dc:date>
    </item>
    <item>
      <title>Re: While creating a UDF in databricks SQL, how can I declare a local variable? 
Something like this?
CREATE OR REPLACE FUNCTION len()
set myString = 'my value';
  RETURNS INT  
  RETURN length(myString);</title>
      <link>https://community.databricks.com/t5/missing-questionpost/while-creating-a-udf-in-databricks-sql-how-can-i-declare-a-local/m-p/3334#M97</link>
      <description>&lt;P&gt;Hi @Ravi V​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Great to meet you, and thanks for your question!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Let's see if your peers in the community have an answer to your question. Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2023 06:02:49 GMT</pubDate>
      <guid>https://community.databricks.com/t5/missing-questionpost/while-creating-a-udf-in-databricks-sql-how-can-i-declare-a-local/m-p/3334#M97</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-06-16T06:02:49Z</dc:date>
    </item>
  </channel>
</rss>

