Skip to content

Commit 3376095

Browse files
committed
Updated dsl definitions
1 parent b0307e1 commit 3376095

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

src/adapter/etl-adapter-parquet/src/Flow/ETL/Adapter/Parquet/functions.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44

55
namespace Flow\ETL\Adapter\Parquet;
66

7-
use Flow\ETL\{Attribute\DocumentationDSL, Attribute\DocumentationExample, Attribute\Module, Attribute\Type as DSLType};
7+
use Flow\ETL\{Attribute\DocumentationDSL,
8+
Attribute\DocumentationExample,
9+
Attribute\Module,
10+
Attribute\Type as DSLType,
11+
Attribute\Type};
812
use Flow\ETL\Schema;
913
use Flow\Filesystem\Path;
1014
use Flow\Parquet\{ByteOrder, Options};
@@ -76,13 +80,15 @@ function to_parquet(
7680
*
7781
* @return \Generator<T>
7882
*/
83+
#[DocumentationDSL(module: Module::PARQUET, type: DSLType::HELPER)]
7984
function array_to_generator(array $data) : \Generator
8085
{
8186
foreach ($data as $row) {
8287
yield $row;
8388
}
8489
}
8590

91+
#[DocumentationDSL(module: Module::PARQUET, type: DSLType::HELPER)]
8692
function empty_generator() : \Generator
8793
{
8894
yield from [];

web/landing/resources/dsl.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)