Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to arrow-1.0.1 #146

Merged
merged 10 commits into from
Sep 1, 2020
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
sudo apt-get --yes install flex bison
- name: Install vcpkg build dependencies (macOS)
if: steps.get-cached-vcpkg.outputs.cache-hit != 'true' && runner.os == 'macOS'
run: brew install bison
run: brew install bison pkg-config
- name: Compile vcpkg dependencies (Unix)
if: steps.get-cached-vcpkg.outputs.cache-hit != 'true' && (runner.os == 'Linux' || runner.os == 'macOS')
run: ./vcpkg_unix.sh
Expand Down
18 changes: 18 additions & 0 deletions cmake/Findutf8proc.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@

include(SelectLibraryConfigurations)
include(FindPackageHandleStandardArgs)

find_path(utf8proc_INCLUDE_DIR utf8proc.h)

if (NOT utf8proc_LIBRARIES)
find_library(utf8proc_LIBRARY_RELEASE NAMES utf8proc utf8proc_static PATHS ${CMAKE_PREFIX_PATH}/lib NO_DEFAULT_PATH)
find_library(utf8proc_LIBRARY_DEBUG NAMES utf8proc utf8proc_static PATHS ${CMAKE_PREFIX_PATH}/debug/lib NO_DEFAULT_PATH)
SELECT_LIBRARY_CONFIGURATIONS(utf8proc)
endif()

mark_as_advanced(utf8proc_FOUND utf8proc_INCLUDE_DIR utf8proc_LIBRARY_RELEASE utf8proc_LIBRARY_DEBUG)
find_package_handle_standard_args(utf8proc REQUIRED_VARS utf8proc_INCLUDE_DIR utf8proc_LIBRARIES)

if(utf8proc_FOUND)
set(utf8proc_INCLUDE_DIRS ${utf8proc_INCLUDE_DIR})
endif()
2 changes: 2 additions & 0 deletions cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ find_package(lz4 CONFIG REQUIRED)
find_package(OpenSSL REQUIRED)
find_package(Snappy CONFIG REQUIRED)
find_package(Thrift CONFIG REQUIRED)
find_package(utf8proc REQUIRED)
find_package(ZLIB REQUIRED)
find_package(Zstd REQUIRED)
find_package(ParquetCpp REQUIRED)
Expand Down Expand Up @@ -96,6 +97,7 @@ target_link_libraries(ParquetSharpNative
${SSL_LIBRARIES}
Snappy::snappy
thrift::thrift
${utf8proc_LIBRARIES}
ZLIB::ZLIB
${Zstd_LIBRARIES}
${Threads_LIBRARIES}
Expand Down
2 changes: 1 addition & 1 deletion csharp.test/TestByteArrayReaderCache.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public static void TestReadingDuplicateStrings([Values(true, false)] bool enable
private static WriterProperties CreateWriterProperties(bool enableDictionary)
{
using var builder = new WriterPropertiesBuilder();
builder.Compression(Compression.Lz4);
builder.Compression(Compression.Snappy);
return (enableDictionary ? builder : builder.DisableDictionary("value")).Build();
}

Expand Down
2 changes: 1 addition & 1 deletion csharp.test/TestEncryption.cs
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ private static WriterProperties CreateWriterProperties(FileEncryptionProperties
using var builder = new WriterPropertiesBuilder();

return builder
.Compression(Compression.Lz4)
.Compression(Compression.Snappy)
.Encryption(fileEncryptionProperties)
.Build();
}
Expand Down
2 changes: 1 addition & 1 deletion csharp.test/TestLogicalTypeRoundtrip.cs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ private static WriterProperties CreateWriterProperties(ExpectedColumn[] expected
{
var builder = new WriterPropertiesBuilder();

builder.Compression(Compression.Lz4);
builder.Compression(Compression.Snappy);

if (!useDictionaryEncoding)
{
Expand Down
4 changes: 2 additions & 2 deletions csharp.test/TestPhysicalTypeRoundtrip.cs
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ private static WriterProperties CreateWriterProperties(ExpectedColumn[] expected
{
var builder = new WriterPropertiesBuilder();

builder.Compression(Compression.Lz4);
builder.Compression(Compression.Snappy);

if (!useDictionaryEncoding)
{
Expand Down Expand Up @@ -248,7 +248,7 @@ private sealed class ExpectedColumn
public int TypeScale = -1;

public Encoding[] Encodings = {Encoding.PlainDictionary, Encoding.Plain, Encoding.Rle};
public Compression Compression = Compression.Lz4;
public Compression Compression = Compression.Snappy;
}
}
}
2 changes: 1 addition & 1 deletion csharp.test/TestWriterProperties.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public static void TestByteStreamSplitEncoding()
};

var p = new WriterPropertiesBuilder()
.Compression(Compression.Lz4)
.Compression(Compression.Snappy)
.DisableDictionary("value")
.Encoding("value", Encoding.ByteStreamSplit)
.Build();
Expand Down
4 changes: 2 additions & 2 deletions csharp/ParquetFileWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public sealed class ParquetFileWriter : IDisposable
public ParquetFileWriter(
string path,
Column[] columns,
Compression compression = Compression.Lz4,
Compression compression = Compression.Snappy,
IReadOnlyDictionary<string, string> keyValueMetadata = null)
{
using (var schema = Column.CreateSchemaNode(columns))
Expand All @@ -24,7 +24,7 @@ public ParquetFileWriter(
public ParquetFileWriter(
OutputStream outputStream,
Column[] columns,
Compression compression = Compression.Lz4,
Compression compression = Compression.Snappy,
IReadOnlyDictionary<string, string> keyValueMetadata = null)
{
using (var schema = Column.CreateSchemaNode(columns))
Expand Down
2 changes: 1 addition & 1 deletion csharp/ParquetSharp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<NoWarn>1591;</NoWarn>
<Version>2.2.0</Version>
<Version>2.3.0-beta1</Version>
<Company>G-Research</Company>
<Authors>G-Research</Authors>
<Product>ParquetSharp</Product>
Expand Down
4 changes: 2 additions & 2 deletions csharp/RowOriented/ParquetFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public static ParquetRowReader<TTuple> CreateRowReader<TTuple>(RandomAccessFile
public static ParquetRowWriter<TTuple> CreateRowWriter<TTuple>(
string path,
string[] columnNames = null,
Compression compression = Compression.Lz4,
Compression compression = Compression.Snappy,
IReadOnlyDictionary<string, string> keyValueMetadata = null)
{
var (columns, writeDelegate) = GetOrCreateWriteDelegate<TTuple>(columnNames);
Expand All @@ -56,7 +56,7 @@ public static ParquetRowWriter<TTuple> CreateRowWriter<TTuple>(
public static ParquetRowWriter<TTuple> CreateRowWriter<TTuple>(
OutputStream outputStream,
string[] columnNames = null,
Compression compression = Compression.Lz4,
Compression compression = Compression.Snappy,
IReadOnlyDictionary<string, string> keyValueMetadata = null)
{
var (columns, writeDelegate) = GetOrCreateWriteDelegate<TTuple>(columnNames);
Expand Down
2 changes: 1 addition & 1 deletion vcpkg_version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
https://github.com/microsoft/vcpkg.git 2020.06
https://github.com/Microsoft/vcpkg.git aea911913663ee417391e64c74814b34c7da0345