-
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.
Added offset option to parquet extractor
- Loading branch information
1 parent
13c319f
commit 3259835
Showing
4 changed files
with
54 additions
and
5 deletions.
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
26 changes: 26 additions & 0 deletions
26
...er/etl-adapter-parquet/tests/Flow/ETL/Adapter/Parquet/Tests/Unit/ParquetExtractorTest.php
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,26 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Flow\ETL\Adapter\Parquet\Tests\Unit; | ||
|
||
use Flow\ETL\Adapter\Parquet\ParquetExtractor; | ||
use Flow\ETL\Exception\InvalidArgumentException; | ||
use Flow\ETL\Filesystem\Path; | ||
use Flow\Parquet\Options; | ||
use PHPUnit\Framework\TestCase; | ||
|
||
final class ParquetExtractorTest extends TestCase | ||
{ | ||
public function test_using_offset_with_pattern_path() : void | ||
{ | ||
$this->expectException(InvalidArgumentException::class); | ||
$this->expectExceptionMessage('Offset can be used only with single file path, not with pattern'); | ||
|
||
new ParquetExtractor( | ||
new Path('/tmp/*.parquet'), | ||
Options::default(), | ||
offset: 100 | ||
); | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...roupBuilder/ColumnChunkStatisticsTest.php → ...roupBuilder/ColumnChunkStatisticsTest.php
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