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

ASF GitHub Bot commented on PARQUET-1599:
-----------------------------------------

Fokko commented on pull request #650: PARQUET-1599: Fix to-avro to respect the 
overwrite option
URL: https://github.com/apache/parquet-mr/pull/650
 
 
   
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


> Fix to-avro to respect the overwrite option
> -------------------------------------------
>
>                 Key: PARQUET-1599
>                 URL: https://issues.apache.org/jira/browse/PARQUET-1599
>             Project: Parquet
>          Issue Type: Bug
>          Components: parquet-cli
>            Reporter: Kengo Seki
>            Assignee: Kengo Seki
>            Priority: Major
>              Labels: pull-request-available
>
> parquet-cli's {{to-avro}} has {{--overwrite}} option, and it works as 
> expected:
> {code}
> $ ls -l output
> total 8
> -rw-r--r--  1 sekikn  staff  2010 Jun 13 12:37 sample.avro
> $ java -cp 'target/*:target/dependency/*' org.apache.parquet.cli.Main to-avro 
> sample.parquet -o output/sample.avro --overwrite
> $ ls -l output
> total 8
> -rw-r--r--  1 sekikn  staff  2010 Jun 13 12:38 sample.avro
> {code}
> But even without this flag, it overwrites the existing file with no warning.
> {code}
> $ java -cp 'target/*:target/dependency/*' org.apache.parquet.cli.Main to-avro 
> sample.parquet -o output/sample.avro
> $ ls -l output
> total 8
> -rw-r--r--  1 sekikn  staff  2010 Jun 13 12:39 sample.avro
> {code}
> This behaviour should be fixed for consistency with other subcommands.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to