Uploaded image for project: 'Parquet'
  1. Parquet
  2. PARQUET-1599

Fix to-avro to respect the overwrite option

    XMLWordPrintableJSON

Details

    Description

      parquet-cli's to-avro has --overwrite option, and it works as expected:

      $ 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
      

      But even without this flag, it overwrites the existing file with no warning.

      $ 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
      

      This behaviour should be fixed for consistency with other subcommands.

      Attachments

        Issue Links

          Activity

            People

              sekikn Kengo Seki
              sekikn Kengo Seki
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: