<?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>question Re: How can I create a udf in impala in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/How-can-I-create-a-udf-in-impala/m-p/313544#M225588</link>
    <description>&lt;P&gt;Thanks for your quick response. Although I wrote that I have read clouderas documentation about UDFS and it didnt help me a lot. Is there any source with examples?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 22 Mar 2021 07:01:54 GMT</pubDate>
    <dc:creator>drgenious</dc:creator>
    <dc:date>2021-03-22T07:01:54Z</dc:date>
    <item>
      <title>How can I create a udf in impala</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-can-I-create-a-udf-in-impala/m-p/313540#M225585</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I perform many queries with the below statement and I thought that instead of writing over and over again the same cases if it is possible to create a UDF in impala to handle this like sql server.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="php"&gt; (select people, sum(new_money) as new_money from 
    (
    select people,
    case
    when pocket_01 = 'leather' then sum(nvl(money,0.0))/100 else 0.0
    end +
    case
    when pocket_02 = 'leather' then sum(nvl(money,0.0))/100 else 0.0
    end +
    case
    when pocket_03 = 'leather' then sum(nvl(money,0.0))/100 else 0.0
    end +
    case
    when pocket_04 = 'leather' then sum(nvl(money,0.0))/100 else 0.0
    end +
    case
    when pocket_05 = 'leather' then sum(nvl(money,0.0))/100 else 0.0
    end +
    case
    when pocket_06 = 'leather' then sum(nvl(money,0.0))/100 else 0.0
    end +
    case
    when pocket_07 = 'leather' then sum(nvl(money,0.0))/100 else 0.0
    end ) as new_money from bank where date = '20201010'
    ) target 
    group by people ) as target&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this possible? I have searched everywhere to find a simple example of how to create a udf but I only found this in the cloudera documentation which didnt help me a lot.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Mar 2021 06:56:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-can-I-create-a-udf-in-impala/m-p/313540#M225585</guid>
      <dc:creator>drgenious</dc:creator>
      <dc:date>2021-03-22T06:56:39Z</dc:date>
    </item>
    <item>
      <title>Re: How can I create a udf in impala</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-can-I-create-a-udf-in-impala/m-p/313543#M225587</link>
      <description>&lt;P&gt;The documentation is here:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.cloudera.com/documentation/enterprise/6/6.3/topics/impala_udf.html" target="_blank"&gt;https://docs.cloudera.com/documentation/enterprise/6/6.3/topics/impala_udf.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can either implement Impala UDF using C++ or Hive UDF using Java&lt;/P&gt;</description>
      <pubDate>Mon, 22 Mar 2021 06:59:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-can-I-create-a-udf-in-impala/m-p/313543#M225587</guid>
      <dc:creator>Daming Xue</dc:creator>
      <dc:date>2021-03-22T06:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: How can I create a udf in impala</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-can-I-create-a-udf-in-impala/m-p/313544#M225588</link>
      <description>&lt;P&gt;Thanks for your quick response. Although I wrote that I have read clouderas documentation about UDFS and it didnt help me a lot. Is there any source with examples?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Mar 2021 07:01:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-can-I-create-a-udf-in-impala/m-p/313544#M225588</guid>
      <dc:creator>drgenious</dc:creator>
      <dc:date>2021-03-22T07:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: How can I create a udf in impala</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-can-I-create-a-udf-in-impala/m-p/313545#M225589</link>
      <description>&lt;P&gt;Some community posts:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://data-flair.training/blogs/impala-udf/" target="_blank"&gt;https://data-flair.training/blogs/impala-udf/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://bigdatalatte.wordpress.com/2015/06/04/writing-java-udfs-in-impala/" target="_blank"&gt;https://bigdatalatte.wordpress.com/2015/06/04/writing-java-udfs-in-impala/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://blog.clairvoyantsoft.com/impala-udf-in-c-cf8a8f4a17c9" target="_blank"&gt;https://blog.clairvoyantsoft.com/impala-udf-in-c-cf8a8f4a17c9&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Mar 2021 07:10:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-can-I-create-a-udf-in-impala/m-p/313545#M225589</guid>
      <dc:creator>Daming Xue</dc:creator>
      <dc:date>2021-03-22T07:10:17Z</dc:date>
    </item>
  </channel>
</rss>

