ion

AWS-Ion-Daten lesen und Ion-Text oder -Binärdaten mit typisierten Zuordnungen schreiben

Maintainer: kestra-io, proddata

Installation und Laden

INSTALL ion FROM community;
LOAD ion;

Beispiel

-- Read Ion files (text or binary)
SELECT * FROM read_ion('sample.ion');
-- Control schema and parsing options
SELECT * FROM read_ion('sample.ion', columns := {id: 'BIGINT', label: 'VARCHAR'});
SELECT * FROM read_ion('scalars.ion', records := false);
SELECT * FROM read_ion('array.ion', format := 'array');
-- Write Ion text or binary
CREATE TABLE ion_demo AS SELECT 1::INTEGER AS id, 'hello' AS label;
COPY ion_demo TO 'out.ion' (FORMAT ION);
COPY ion_demo TO 'out.ion' (FORMAT ION, BINARY TRUE);

Über ion

Die ion-Erweiterung ermöglicht DuckDB das Lesen von AWS Ion in Text- und Binärformaten sowie das Schreiben von Ion-Text oder -Binärdaten und bewahrt Ion-Typen wo möglich für reichhaltigere Analysen.

Hinzugefügte Funktionen

function_name function_type description comment examples
read_ion table NULL NULL
to_ion scalar NULL NULL

Überladene Funktionen

Diese Erweiterung fügt keine Funktionsüberladungen hinzu.

Hinzugefügte Typen

Diese Erweiterung fügt keine Typen hinzu.

Hinzugefügte Einstellungen

Diese Erweiterung fügt keine Einstellungen hinzu.