JSON Spark connector - CSharplie/ploosh GitHub Wiki
This connector is used to read JSON files using Spark.
See Spark documentation for more information.
No connection is required by this connector
| Name | Mandatory | Default | Description |
|---|---|---|---|
| path | yes | Path to the JSON file | |
| multiline | no | True | Handles multi-line JSON files |
| encoding | no | "UTF-8" | Encoding to use for UTF when reading/writing |
| lineSep | no | "\n" | Character used to denote a line break |
Example JSON Spark:
source:
type: json_spark
path: data/employees/example.JSON
multiline: Tre
encoding: "UTF-8"
lineSep: "\r\n"
expected:
type: sql_spark
query: |
select *
from employees
where hire_date < "2000-01-01"