You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Zhen Wang (Jira)" <ji...@apache.org> on 2024/04/19 07:41:00 UTC

[jira] [Created] (SPARK-47912) File format of insert overwrite dir does not take effect

Zhen Wang created SPARK-47912:
---------------------------------

             Summary: File format of insert overwrite dir does not take effect
                 Key: SPARK-47912
                 URL: https://issues.apache.org/jira/browse/SPARK-47912
             Project: Spark
          Issue Type: Bug
          Components: SQL
    Affects Versions: 4.0.0
            Reporter: Zhen Wang


File format of insert overwrite dir does not take effect.

 

Reproduce:
{code:java}
set hive.default.fileformat=parquet;-- Not as expected, I want an orc file but written in parquet format
INSERT OVERWRITE DIRECTORY '$tablePath'
STORED AS
  INPUTFORMAT 'org.apache.hadoop.hive.ql.io.orc.OrcInputFormat'
  OUTPUTFORMAT 'org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat'
select 1;-- Failed
select * from `orc`.`$tablePath`; {code}
 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org