Commit fbcb883
feat(source-pokeapi): Switch pokemon stream to use InferredSchemaLoader
This commit replaces the InlineSchemaLoader with the new InferredSchemaLoader
on the pokemon stream. The InferredSchemaLoader will read 1 sample record at
discover time and infer the schema using genson.
This demonstrates the end-to-end functionality of the InferredSchemaLoader
feature from CDK PR airbytehq/airbyte-python-cdk#831.
Expected behavior:
- Discover should return a non-empty schema inferred from the sample record
- Schema may include nullable unions (e.g., ["string", "null"]) from genson
- Read operations should continue to work with the inferred schema
Related: airbytehq/airbyte-python-cdk#831
Co-Authored-By: AJ Steers <aj@airbyte.io>1 parent d177cf7 commit fbcb883
File tree
1 file changed
+13
-3
lines changed- airbyte-integrations/connectors/source-pokeapi
1 file changed
+13
-3
lines changedLines changed: 13 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | | - | |
31 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
32 | 42 | | |
33 | 43 | | |
34 | 44 | | |
| |||
0 commit comments