Avro to JSON converter
Перейти к файлу
Michael Spector 6d427fc214
Reintegrate CodeQL
2024-05-01 13:44:14 +03:00
.github/workflows Reintegrate CodeQL 2024-05-01 13:44:14 +03:00
include/windows Review remarks 2022-03-23 15:42:05 +02:00
src Timestamp transformations for CSV mode (#21) 2023-11-27 10:03:00 +02:00
tests Timestamp transformations for CSV mode (#21) 2023-11-27 10:03:00 +02:00
.gitignore Output a single non-existing field as a comma (#20) 2023-10-18 09:59:11 +03:00
CHANGELOG.md Updated changelog 2021-02-01 10:18:01 +02:00
CMakeLists.txt Review remarks 2022-03-23 15:42:05 +02:00
CODE_OF_CONDUCT.md Initial CODE_OF_CONDUCT.md commit 2020-01-23 13:58:47 -08:00
LICENSE Initial LICENSE commit 2020-01-23 13:58:48 -08:00
LinuxPackage.nuspec Timestamp transformations for CSV mode (#21) 2023-11-27 10:03:00 +02:00
Package.nuspec Timestamp transformations for CSV mode (#21) 2023-11-27 10:03:00 +02:00
README.md Add pkg-config dependency to Linux build instructions (#10) 2022-06-29 17:34:28 +03:00
SECURITY.md Initial SECURITY.md commit 2020-01-23 13:58:50 -08:00
build.bat Fix build.bat to provide -DCMAKE_BUILD_TYPE and separate Debug and Release projects (#15) 2023-03-30 17:55:50 +03:00

README.md

azure-kusto-avro-conv

Build Status

Utility that converts Avro files to JSON format.

Building in Linux

Prerequisites

To install all the required dependencies (in Ubuntu/Debian), run:

apt-get install libjansson-dev liblzma-dev libsnappy-dev zlib1g-dev libgmp-dev pkg-config

Build private Avro C fork that includes logical types support:

git clone https://github.com/spektom/avro.git
cd avro/lang/c
git checkout c_logical_types
mkdir build
cd build
cmake ..
make -j

Compiling

mkdir build
cd build
cmake -DAVRO_LIBRARY=../../avro/lang/c/build/src/libavro.a -DAVRO_INCLUDE_DIR=../../avro/lang/c/src ..
make -j

Building in Windows

Prerequisites

  • Microsoft Visual Studio 2019/2021.
  • CMake >= 3.12.
  • Private fork of VCPKG.
  • Apache Avro installed with vcpkg (see below).
  • GMP library (mpir) installed with vcpkg (see below).
  • Jemalloc library installed with vcpkg (see below).

To install Apache Avro library, run:

git clone https://github.com/spektom/vcpkg.git
cd vcpkg
git checkout avro_logical_types
.\bootstrap-vcpkg.bat
.\vcpkg install avro-c:x64-windows-static
.\vcpkg install mpir:x64-windows-static
.\vcpkg install jemalloc:x64-windows-release

Compiling

.\build.bat <Build Configuration> <VCPKG_DIR> <MSBUILD_DIR> <CMAKE_DIR>

Example: .\build.bat Release C:\repos\vcpkg "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin" "C:\Program Files\CMake\bin"

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.

When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.