<?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 Migrating SQL or PLSQL language to Pig and Hive in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Migrating-SQL-or-PLSQL-language-to-Pig-and-Hive/m-p/96604#M10148</link>
    <description>&lt;P&gt;Can someone provide a rough order of magnitude/level-of-effort for converting or migrating PLSQL language (5,000-10,000 lines of code need to be migrated to Pig and Hive)?&lt;/P&gt;</description>
    <pubDate>Fri, 06 Nov 2015 01:18:38 GMT</pubDate>
    <dc:creator>sshilling</dc:creator>
    <dc:date>2015-11-06T01:18:38Z</dc:date>
    <item>
      <title>Migrating SQL or PLSQL language to Pig and Hive</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Migrating-SQL-or-PLSQL-language-to-Pig-and-Hive/m-p/96604#M10148</link>
      <description>&lt;P&gt;Can someone provide a rough order of magnitude/level-of-effort for converting or migrating PLSQL language (5,000-10,000 lines of code need to be migrated to Pig and Hive)?&lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2015 01:18:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Migrating-SQL-or-PLSQL-language-to-Pig-and-Hive/m-p/96604#M10148</guid>
      <dc:creator>sshilling</dc:creator>
      <dc:date>2015-11-06T01:18:38Z</dc:date>
    </item>
    <item>
      <title>Re: Migrating SQL or PLSQL language to Pig and Hive</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Migrating-SQL-or-PLSQL-language-to-Pig-and-Hive/m-p/96605#M10149</link>
      <description>&lt;P&gt;@&lt;A href="http://community.hortonworks.com/users/316/sshilling.html"&gt;Steve Shilling&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You may want to look into &lt;A target="_blank" href="http://www.impetus.com/content/easy-etl-sql-offloading-enterprise-data-warehouse-hadoop"&gt;this&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It's not easy task to estimate this ...I would say 1 month (Just picked up random number)  &lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2015 01:22:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Migrating-SQL-or-PLSQL-language-to-Pig-and-Hive/m-p/96605#M10149</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2015-11-06T01:22:50Z</dc:date>
    </item>
    <item>
      <title>Re: Migrating SQL or PLSQL language to Pig and Hive</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Migrating-SQL-or-PLSQL-language-to-Pig-and-Hive/m-p/96606#M10150</link>
      <description>&lt;P&gt;There is also HPL/SQL.  &lt;/P&gt;&lt;P&gt;&lt;A href="http://www.hplsql.org/doc" target="_blank"&gt;http://www.hplsql.org/doc&lt;/A&gt; &lt;/P&gt;&lt;P&gt;It was incorporated into the Hive 2.0 release (Feb 16th) and thus will be automatically included in the next release of HDP that includes Hive 2.0. &lt;/P&gt;&lt;P&gt;It can be very easily added to an existing HDP install as well.   &lt;/P&gt;&lt;P&gt;It is an implementation of stored procs, control flow logic, temporary variables, error checking, on-the-fly SQL syntax conversion to HiveQL, RDBMS SQL syntax compatibility, etc.  It brings almost all the functionality of DB2, SQL Server, Oracle stored procs and SQL syntax into Hive. An added bonus is that you can mix &amp;amp; match the syntax of SQL Server T-SQL, Oracle PLSQL and DB2.  It is slick. &lt;/P&gt;&lt;P&gt;For example - here is a sample script that runs in HPL/SQL (for real):&lt;/P&gt;&lt;PRE&gt;create procedure spLoadSalesFact (LoadMonth char(10)) 
BEGIN
   SET plhql.onerror = seterror; 

   print 'Beginning execution...'; 
   print '*' || LoadMonth || '*'; 

   /* Fail if invalid Input Parameter 
   set LoadMonth = Upper(LoadMonth); 
   if (LoadMonth not in ('LAST', 'CURRENT'))
      BEGIN
      print 'Bad Input Paramter'; 
      RETURN -1;
      END
    */
   /* Load Prior Month */
   IF (LoadMonth = 'LAST') 
      BEGIN
      print 'Inserting Last Month''s Data...'; 
      insert into table saleslineitem 
      select * from saleslineitem 
      where TransactionDate &amp;gt;= '2011-06-01' 
        and transactionDate &amp;lt; '2011-07-01';
      if SQLCODE &amp;lt;&amp;gt; 0 
         RETURN -2;
      END
   /* Load Current Month */
   ELSE IF (LoadMonth = 'CURRENT') 
      BEGIN
      print 'Inserting Current month''s data...'; 
      insert into table saleslineitem 
      select * from saleslineitem 
      where TransactionDate &amp;gt;= '2011-07-01' 
        and transactionDate &amp;lt; '2011-08-01';
      if SQLCODE &amp;lt;&amp;gt; 0 
         RETURN -3;
      END
   PRINT 'Execution Completed...'; 
END
/* Stored Proc invocation */
-- CALL spLoadSalesFact ('GARBAGE'); 
-- CALL spLoadSalesFact ('LAST');
CALL spLoadSalesFact ('CURRENT');   &lt;/PRE&gt;</description>
      <pubDate>Wed, 24 Feb 2016 19:54:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Migrating-SQL-or-PLSQL-language-to-Pig-and-Hive/m-p/96606#M10150</guid>
      <dc:creator>bpreachuk</dc:creator>
      <dc:date>2016-02-24T19:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: Migrating SQL or PLSQL language to Pig and Hive</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Migrating-SQL-or-PLSQL-language-to-Pig-and-Hive/m-p/96607#M10151</link>
      <description>&lt;P&gt;Are there any performance improvements of not creating custom UDF function ? I have currently some text-analytics functions, for which I can either create UDF jar files or use HPLSQL.@bpreachuk Are there any performance issues that you faced on using HPLSQL ?&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2017 10:22:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Migrating-SQL-or-PLSQL-language-to-Pig-and-Hive/m-p/96607#M10151</guid>
      <dc:creator>tanmoy_official</dc:creator>
      <dc:date>2017-10-23T10:22:50Z</dc:date>
    </item>
    <item>
      <title>Re: Migrating SQL or PLSQL language to Pig and Hive</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Migrating-SQL-or-PLSQL-language-to-Pig-and-Hive/m-p/96608#M10152</link>
      <description>&lt;P&gt;Hi @tanmoy.  I would recommend you go the custom route - create UDF jars for Hive.  That way you can use them anywhere you use Hive code. HPL/SQL is still not a GA feature, and in my opinion HPL/SQL  use a little bit more time to "bake" and become more robust.     &lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2017 10:33:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Migrating-SQL-or-PLSQL-language-to-Pig-and-Hive/m-p/96608#M10152</guid>
      <dc:creator>bpreachuk</dc:creator>
      <dc:date>2017-10-23T10:33:16Z</dc:date>
    </item>
  </channel>
</rss>

