Coder Social home page Coder Social logo

renesugar / fileconvert Goto Github PK

View Code? Open in Web Editor NEW
14.0 4.0 1.0 3.74 MB

Converts between file formats such as CSV and Parquet

License: Apache License 2.0

CMake 1.46% C++ 29.31% C 65.23% Shell 0.16% Go 0.04% Emacs Lisp 0.01% Python 0.02% Objective-C 3.32% HTML 0.32% Perl 0.04% Thrift 0.10%
csv apache-arrow apache-parquet parquet-files converts parquet-cpp

fileconvert's Introduction

FileConvert

FileConvert converts between CSV/TSV and Parquet files (schemas supported by the Arrow library).

Table of Contents

Links

License

This project is licensed under the Apache License, Version 2.0.

The repository includes a number of third party packages provided under separate licenses. Details about these packages and their respective licenses is at ThirdParty/licenses/index.md.

Building

FileConvert is built using the same build process as MapD Core.

See MapD Core README

mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=debug ..
make

Development

There are several make targets that can be used to run development tools.

  • Runs cpplint through the build system:
make lint
  • Runs clang-format and updates files in place:
make format
  • Runs clang-format and returns an error if any files need to be reformatted:
make check-format
  • Runs clang-tidy and updates files in place:
make clang-tidy
  • Runs clang-tidy and returns an error if any errors are found:
make check-clang-tidy
  • After building, you can run the infer static analysis tool.
brew update
brew install infer

Make targets have been added to run the infer steps.

Other ways to use infer can be found in the article Recommended flow for CI.

  1. First run the capture step using:
make infer
  1. Next, run the analyze step using:
make infer-analyze

Note: The analyze step can take a very long time.

  1. Next, run the report step using:
make infer-report

Using

(See https://issues.apache.org/jira/browse/PARQUET-1114 for versions of Arrow and Parquet-Cpp with necessary fixes.)

The basic command line to convert a file from one type to another is:

FileConvert -i ./file.csv -o ./file.parquet

FileConvert -i ./file.parquet -o ./file1.csv

Tools from parquet-cpp can be used to verify Parquet files generated.

parquet-dump-schema ./file.parquet

parquet_reader --only-metadata ./file.parquet

parquet-scan ./file.parquet

The other command line options can be seen by typing:

FileConvert --help

fileconvert's People

Contributors

renesugar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

xtutran

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.