<?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: Hive stored View definition incomplete in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-stored-View-definition-incomplete/m-p/174182#M58118</link>
    <description>&lt;P&gt;Please try to create view with database name parameter as below, instead of default database.&lt;/P&gt;&lt;PRE&gt;    CREATE VIEW database.news_split AS
    SELECT company, nof_lines, title,
      author, nof_words, keydate,
      publisher, w.word
    FROM database.news
     LATERAL VIEW EXPLODE(words) W AS WORD;&lt;/PRE&gt;</description>
    <pubDate>Sun, 26 Mar 2017 10:31:31 GMT</pubDate>
    <dc:creator>shivkumar82015</dc:creator>
    <dc:date>2017-03-26T10:31:31Z</dc:date>
    <item>
      <title>Hive stored View definition incomplete</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-stored-View-definition-incomplete/m-p/174181#M58117</link>
      <description>&lt;P&gt;
	When working with Hive in HDP 2.5 I noticed that the stored View definition sometimes is incomplete. For example I create the following view:&lt;/P&gt;&lt;PRE&gt;CREATE VIEW news_split AS
SELECT company, nof_lines, title,
  author, nof_words, keydate,
  publisher, w.word
FROM news
 LATERAL VIEW EXPLODE(words) W AS WORD;&lt;/PRE&gt;&lt;P&gt;
	If I then query the view ddl using "show create table news_split;" I get:&lt;/P&gt;&lt;PRE&gt;CREATE VIEW `news_split` AS
SELECT `news`.`company`, `news`.`nof_lines`, `news`.`title`,
  `news`.`author`, `news`.`nof_words`, `news`.`keydate`,
  `news`.`publisher`, 
FROM `default`.`news`
  LATERAL VIEW EXPLODE (`news`.`words`) `W` AS `word`&lt;/PRE&gt;&lt;P&gt;
	Can anyone explain why this is and how I can fix it? Maybe even how I get rid of the `news`. before every field?&lt;/P&gt;</description>
      <pubDate>Sun, 26 Mar 2017 05:29:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-stored-View-definition-incomplete/m-p/174181#M58117</guid>
      <dc:creator>shaetaelae</dc:creator>
      <dc:date>2017-03-26T05:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: Hive stored View definition incomplete</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-stored-View-definition-incomplete/m-p/174182#M58118</link>
      <description>&lt;P&gt;Please try to create view with database name parameter as below, instead of default database.&lt;/P&gt;&lt;PRE&gt;    CREATE VIEW database.news_split AS
    SELECT company, nof_lines, title,
      author, nof_words, keydate,
      publisher, w.word
    FROM database.news
     LATERAL VIEW EXPLODE(words) W AS WORD;&lt;/PRE&gt;</description>
      <pubDate>Sun, 26 Mar 2017 10:31:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-stored-View-definition-incomplete/m-p/174182#M58118</guid>
      <dc:creator>shivkumar82015</dc:creator>
      <dc:date>2017-03-26T10:31:31Z</dc:date>
    </item>
  </channel>
</rss>

