-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add polyfill for Parquet compression codecs
- Loading branch information
Showing
5 changed files
with
59 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
use Flow\ETL\Exception\RuntimeException; | ||
|
||
if (!\function_exists('brotli_compress')) { | ||
function brotli_compress(string $plainText) : string|false | ||
{ | ||
throw new RuntimeException('Brotli PHP extension is not installed, please follow instructions from: https://github.com/kjdev/php-ext-brotli'); | ||
} | ||
} | ||
|
||
if (!\function_exists('brotli_uncompress')) { | ||
function brotli_uncompress(string $compressedText) : string|false | ||
{ | ||
throw new RuntimeException('Brotli PHP extension is not installed, please follow instructions from: https://github.com/kjdev/php-ext-brotli'); | ||
} | ||
} | ||
|
||
if (!\function_exists('lz4_compress')) { | ||
function lz4_compress(string $plainText) : string|false | ||
{ | ||
throw new RuntimeException('LZ4 PHP extension is not installed, please follow instructions from: https://github.com/kjdev/php-ext-lz4'); | ||
} | ||
} | ||
|
||
if (!\function_exists('lz4_uncompress')) { | ||
function lz4_uncompress(string $compressedText) : string|false | ||
{ | ||
throw new RuntimeException('Zstd PHP extension is not installed, please follow instructions from: https://github.com/kjdev/php-ext-zstd'); | ||
} | ||
} | ||
|
||
if (!\function_exists('zstd_compress')) { | ||
function zstd_compress(string $plainText) : string|false | ||
{ | ||
throw new RuntimeException('Zstd PHP extension is not installed, please follow instructions from: https://github.com/kjdev/php-ext-zstd'); | ||
} | ||
} | ||
|
||
if (!\function_exists('zstd_uncompress')) { | ||
function zstd_uncompress(string $compressedText) : string|false | ||
{ | ||
throw new RuntimeException('LZ4 PHP extension is not installed, please follow instructions from: https://github.com/kjdev/php-ext-zstd'); | ||
} | ||
} |