You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 1631c2f
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: documentation/components/core/core.md
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -236,6 +236,20 @@ $dataFrame = data_frame()
236
236
237
237
> **Note**: Flow PHP supports many data sources through specialized adapters. See individual adapter documentation for specific extractor usage (CSV, JSON, Parquet, databases, APIs, etc.).
238
238
239
+
An empty source has no column to infer a schema from and throws `InferredSchemaException`. Declare the schema to read it:
240
+
241
+
```php
242
+
<?php
243
+
244
+
use function Flow\ETL\DSL\{data_frame, from_array, int_schema, schema, str_schema, to_output};
Copy file name to clipboardExpand all lines: documentation/upgrading.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -138,6 +138,15 @@ public function scan(FlowContext $context, FileScan $scan): Generator
138
138
| Symfony HttpClient `url.full`, `url.scheme`, `server.address`, `server.port` came from the `$url` argument (`/me`, `unknown` with `base_uri`) | they come from the effective URL, `base_uri` and the `query` option included |
139
139
|`exception.stacktrace` was `getTraceAsString()`, with argument values when `zend.exception_ignore_args` is off |`StackTrace::format()`: every frame renders `()`, whatever `zend.exception_ignore_args` is |
140
140
141
+
### 9) `flow-php/etl`, `flow-php/etl-adapter-*` - an empty source without a declared schema fails at the source; Parquet and Floe accept `withSchema()`
| an empty source (`from_all()`, `from_array([])`, a glob that matches no file) described an empty schema |`schema()` throws `InferredSchemaException`; declare the schema with `->withSchema(...)` to read an empty source |
|`from_parquet(...)->withSchema()`, `from_floe(...)->withSchema()` threw `InvalidArgumentException`| read every file by name against the declared schema: undeclared columns are not read, a missing nullable column is null |
148
+
|`from_cache($id)` without a cache instance described an empty schema |`SchemaNotDerivableException`; the plan runs unbound |
0 commit comments