<?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: Why Row Format Delimited does not work with Spark SQL ORC Format? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Why-Row-Format-Delimited-does-not-work-with-Spark-SQL-ORC/m-p/208234#M81448</link>
    <description>&lt;P&gt;This validation is intentionally added in spark with &lt;A href="https://issues.apache.org/jira/browse/SPARK-15279"&gt;SPARK-15279&lt;/A&gt;. As it doesn't make sense to provide DELIMITERS for ORC | PARQUET files.&lt;/P&gt;</description>
    <pubDate>Wed, 01 Aug 2018 14:18:21 GMT</pubDate>
    <dc:creator>nramanaiah</dc:creator>
    <dc:date>2018-08-01T14:18:21Z</dc:date>
    <item>
      <title>Why Row Format Delimited does not work with Spark SQL ORC Format?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Why-Row-Format-Delimited-does-not-work-with-Spark-SQL-ORC/m-p/208232#M81446</link>
      <description>&lt;P&gt;Using Spark-sql with Spark-2.2.0, the following query results in an error:&lt;/P&gt;&lt;P&gt;Query (as printed by spark exception in the console):&lt;/P&gt;&lt;P&gt;CREATE EXTERNAL TABLE IF NOT EXISTS `databaseName`.`tableName` (some field names . . .) PARTITIONED BY (`tenant` STRING, `year` STRING, `month` STRING, `day` STRING, `hour` STRING, `minute` STRING) ROW FORMAT DELIMITED FIELDS TERMINATED BY ',' ESCAPED BY '~' LINES TERMINATED BY '&lt;/P&gt;&lt;P&gt;^^^&lt;/P&gt;&lt;P&gt;' STORED AS ORC LOCATION 'hdfs://clusterName:8020/StorageLocation/'&lt;/P&gt;&lt;P&gt;Error: org.apache.spark.sql.catalyst.parser.ParseException:
Operation not allowed: ROW FORMAT DELIMITED is only compatible with 'textfile', not 'orc'(line 1, pos 0)&lt;/P&gt;&lt;P&gt;This error does not occur when using HiveQL using Hive CLI or when running this query in Hive View via Ambari, or even through hive jdbc. Why does this cause an error in Spark-SQL?&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jul 2018 21:15:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Why-Row-Format-Delimited-does-not-work-with-Spark-SQL-ORC/m-p/208232#M81446</guid>
      <dc:creator>Alexander_Rumak</dc:creator>
      <dc:date>2018-07-31T21:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: Why Row Format Delimited does not work with Spark SQL ORC Format?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Why-Row-Format-Delimited-does-not-work-with-Spark-SQL-ORC/m-p/208233#M81447</link>
      <description>&lt;P&gt;I believe that the answer is the SQL with &lt;/P&gt;&lt;P&gt;ROW FORMAT DELIMITED FIELDS TERMINATED BY ',' ESCAPED BY '~' LINES TERMINATED BY '^^^' &lt;/P&gt;&lt;P&gt;Is simply unsupported HiveQL - and this should be unsupported as it is not used by the ORC format.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jul 2018 22:46:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Why-Row-Format-Delimited-does-not-work-with-Spark-SQL-ORC/m-p/208233#M81447</guid>
      <dc:creator>Alexander_Rumak</dc:creator>
      <dc:date>2018-07-31T22:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: Why Row Format Delimited does not work with Spark SQL ORC Format?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Why-Row-Format-Delimited-does-not-work-with-Spark-SQL-ORC/m-p/208234#M81448</link>
      <description>&lt;P&gt;This validation is intentionally added in spark with &lt;A href="https://issues.apache.org/jira/browse/SPARK-15279"&gt;SPARK-15279&lt;/A&gt;. As it doesn't make sense to provide DELIMITERS for ORC | PARQUET files.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Aug 2018 14:18:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Why-Row-Format-Delimited-does-not-work-with-Spark-SQL-ORC/m-p/208234#M81448</guid>
      <dc:creator>nramanaiah</dc:creator>
      <dc:date>2018-08-01T14:18:21Z</dc:date>
    </item>
  </channel>
</rss>

