<?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: ​Sum of Table Column in NiFi in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sum-of-Table-Column-in-NiFi/m-p/188119#M73366</link>
    <description>&lt;A rel="user" href="https://community.cloudera.com/users/17662/dmueller1607.html" nodeid="17662"&gt;@Daniel Müller&lt;/A&gt;&lt;P&gt;Can you create alias name for the aggregate column &lt;STRONG&gt;sum(menge)&lt;/STRONG&gt; as &lt;STRONG&gt;menge&lt;/STRONG&gt; then the processor will work.&lt;/P&gt;&lt;P&gt;Change the SQL Query as&lt;/P&gt;&lt;PRE&gt;Select sum(menge)menge from &amp;lt;table&amp;gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 12 Jan 2018 00:26:57 GMT</pubDate>
    <dc:creator>Shu_ashu</dc:creator>
    <dc:date>2018-01-12T00:26:57Z</dc:date>
    <item>
      <title>​Sum of Table Column in NiFi</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sum-of-Table-Column-in-NiFi/m-p/188118#M73365</link>
      <description>&lt;P&gt;I need to create checksums in my ETL process. Therefore I need to sum up a numeric column in my JDBC-connected table(s). Copying the data works fine so far, but I was not able to find the correct NiFi processor for this aggregation task. &lt;/P&gt;&lt;P&gt;How can I calculate the sum of a table column? Which processor to use (is there something similar for the SelectHiveQL processor, which works fine for the same aggregation task)? And how to compare these two results (from two different tables) to check if the sums are equal?&lt;/P&gt;&lt;P&gt;I already tried to use a ExecuteSQL processor but there I get an SchemaParseException: &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="49384-unbenannt.png" style="width: 836px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/18676i04DEEA5C0431D963/image-size/medium?v=v2&amp;amp;px=400" role="button" title="49384-unbenannt.png" alt="49384-unbenannt.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;
I'm using NiFi 1.4.0 and Hive 1.2.1.&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 07:57:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sum-of-Table-Column-in-NiFi/m-p/188118#M73365</guid>
      <dc:creator>dmueller1607</dc:creator>
      <dc:date>2019-08-18T07:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: ​Sum of Table Column in NiFi</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sum-of-Table-Column-in-NiFi/m-p/188119#M73366</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/17662/dmueller1607.html" nodeid="17662"&gt;@Daniel Müller&lt;/A&gt;&lt;P&gt;Can you create alias name for the aggregate column &lt;STRONG&gt;sum(menge)&lt;/STRONG&gt; as &lt;STRONG&gt;menge&lt;/STRONG&gt; then the processor will work.&lt;/P&gt;&lt;P&gt;Change the SQL Query as&lt;/P&gt;&lt;PRE&gt;Select sum(menge)menge from &amp;lt;table&amp;gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 12 Jan 2018 00:26:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sum-of-Table-Column-in-NiFi/m-p/188119#M73366</guid>
      <dc:creator>Shu_ashu</dc:creator>
      <dc:date>2018-01-12T00:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: ​Sum of Table Column in NiFi</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sum-of-Table-Column-in-NiFi/m-p/188120#M73367</link>
      <description>&lt;P&gt;Yes, that was the solution! Thank you very much!&lt;/P&gt;&lt;P&gt;Everything works fine with the following statement now:&lt;/P&gt;&lt;PRE&gt;&lt;B&gt;SELECT SUM(menge) menge FROM mytable&lt;/B&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 12 Jan 2018 18:54:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sum-of-Table-Column-in-NiFi/m-p/188120#M73367</guid>
      <dc:creator>dmueller1607</dc:creator>
      <dc:date>2018-01-12T18:54:57Z</dc:date>
    </item>
  </channel>
</rss>

