[ 
https://issues.apache.org/jira/browse/SPARK-28848?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16913027#comment-16913027
 ] 

Ajith S commented on SPARK-28848:
---------------------------------

Thanks for reporting. Will look into this. On initial thoughts looks like 
org.apache.spark.sql.hive.execution.HiveFileFormat#prepareWrite here 
OutputWriterFactory.getFileExtension may not be passing the right file 
extension incase of stored as

> insert overwrite local directory <path> stored as parquet does not creates 
> snappy.parquet data file at local directory path
> ---------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SPARK-28848
>                 URL: https://issues.apache.org/jira/browse/SPARK-28848
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 2.4.3
>            Reporter: ABHISHEK KUMAR GUPTA
>            Priority: Major
>
> 0: jdbc:hive2://10.18.18.214:23040/func> insert overwrite local directory 
> '/opt/trash4/' stored as parquet select * from trash1 a where a.country='PAK';
> +---------+--+
> | Result  |
> +---------+--+
> +---------+--+
> No rows selected (1.368 seconds)
> Data file at local directory path:
> vm1:/opt/trash4 # ll
> total 12
> -rw-r--r-- 1 root root   8 Aug 22 14:30 ._SUCCESS.crc
> -rw-r--r-- 1 root root  16 Aug 22 14:30 
> .part-00001-2b17ec6a-ef7e-4b45-927e-f93b88ff4f65-c000.crc
> -rw-r--r-- 1 root root   0 Aug 22 14:30 _SUCCESS
> -rw-r--r-- 1 root root 619 Aug 22 14:30 
> part-00001-2b17ec6a-ef7e-4b45-927e-f93b88ff4f65-c000



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

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

Reply via email to