Liking cljdoc? Tell your friends :D

delta-sharing.client

Main Delta Sharing client namespace. Contains functions for generic client operations, constructing new clients, and using clients as components in a larger system.

Main Delta Sharing client namespace. Contains functions for generic client
operations, constructing new clients, and using clients as components in a
larger system.
raw docstring

get-shareclj

(get-share client share)

Returns information about a share that's accessible to the recipient.

Returns information about a share that's accessible to the recipient.
sourceraw docstring

list-schema-tablesclj

(list-schema-tables client share schema)
(list-schema-tables client share schema opts)

Returns a list of tables in a schema.

Options:

  • max-results (int) maximum results per page. If there are more available results, the response will return a :next-page-token that can be used to get the next page.

  • next-token (string) a page token to use for the next page of results. See max-results.

Returns a list of tables in a schema.

Options:
 - `max-results` (int) maximum results per page. If there are more available results,
 the response will return a `:next-page-token` that can be used to get the next page.

 - `next-token` (string) a page token to use for the next page of results. See `max-results`.
sourceraw docstring

list-share-schemasclj

(list-share-schemas client share)
(list-share-schemas client share opts)

Returns a list of all the shemas in a share.

Options:

  • max-results (int) maximum results per page. If there are more available results, the response will return a :next-page-token that can be used to get the next page.

  • next-token (string) a page token to use for the next page of results. See max-results.

Returns a list of all the shemas in a share.

Options:
 - `max-results` (int) maximum results per page. If there are more available results,
 the response will return a `:next-page-token` that can be used to get the next page.

 - `next-token` (string) a page token to use for the next page of results. See `max-results`.
sourceraw docstring

list-share-tablesclj

(list-share-tables client share)
(list-share-tables client share opts)

Returns a list of tables within all schemas of a share.

Options:

  • max-results (int) maximum results per page. If there are more available results, the response will return a :next-page-token that can be used to get the next page.

  • next-token (string) a page token to use for the next page of results. See max-results.

Returns a list of tables within all schemas of a share.

Options:
 - `max-results` (int) maximum results per page. If there are more available results,
 the response will return a `:next-page-token` that can be used to get the next page.

 - `next-token` (string) a page token to use for the next page of results. See `max-results`.
sourceraw docstring

list-sharesclj

(list-shares client)
(list-shares client opts)

Returns a list of all shares accessible to the recipient.

Options:

  • max-results (int) maximum results per page. If there are more available results, the response will return a :next-page-token that can be used to get the next page.

  • next-token (string) a page token to use for the next page of results. See max-results.

Returns a list of all shares accessible to the recipient.

Options:
 - `max-results` (int) maximum results per page. If there are more available results,
 the response will return a `:next-page-token` that can be used to get the next page.

 - `next-token` (string) a page token to use for the next page of results. See `max-results`.
sourceraw docstring

new-clientclj

(new-client endpoint auth reader-version & {:as http-opts})

Contructs a new delta-sharing client from a URI address endpoint by dispatching on the scheme.

Contructs a new delta-sharing client from a URI address endpoint by dispatching on the scheme.
sourceraw docstring

query-table-metadataclj

(query-table-metadata client share schema table)
(query-table-metadata client share schema table opts)

Returns a map of information about a table's metadata and protocol.

See https://github.com/delta-io/delta-sharing/blob/main/PROTOCOL.md#query-table-metadata for more.

Options:

  • :min-reader-version (int - default 1) Minimum reader version to support. See https://github.com/delta-io/delta/blob/master/PROTOCOL.md#valid-feature-names-in-table-features for more. Supported reader versions include: 1 {:response-format 'parquet'} 2 {:response-format 'delta' :reader-features 'columnMapping'} 3 {:response-format 'delta' :reader-features 'columnMapping,deletionVectors,timestampNtz,v2Checkpoint,vacuumProtocolCheck'}
  • :response-format (string - default 'parquet') The default table format to respond with. Overrides the one from min-reader-version when set.
  • :reader-features (string - default none) Advanced table features on the requested table. Requires a response format in delta. Overrides the one from min-reader-version when set.
Returns a map of information about a table's metadata and protocol.

See https://github.com/delta-io/delta-sharing/blob/main/PROTOCOL.md#query-table-metadata for more.

Options:
 - `:min-reader-version` (int - default 1) Minimum reader version to support. See 
 https://github.com/delta-io/delta/blob/master/PROTOCOL.md#valid-feature-names-in-table-features for more.
 Supported reader versions include:
 1 {:response-format 'parquet'}
 2 {:response-format 'delta' :reader-features 'columnMapping'}
 3 {:response-format 'delta' :reader-features 'columnMapping,deletionVectors,timestampNtz,v2Checkpoint,vacuumProtocolCheck'}
 - `:response-format` (string - default 'parquet') The default table format to respond with. Overrides the one from
 `min-reader-version` when set.
 - `:reader-features` (string - default none) Advanced table features on the requested table. Requires a
 response format in delta. Overrides the one from `min-reader-version` when set.
sourceraw docstring

query-table-versionclj

(query-table-version client share schema table)
(query-table-version client share schema table opts)

Returns information about the version of a table.

Optionally accepts a :starting-timestamp from which to return the earliest matching version for.

Returns information about the version of a table.

Optionally accepts a `:starting-timestamp` from which to return the earliest matching 
version for.
sourceraw docstring

read-change-data-feedclj

(read-change-data-feed client share schema table)
(read-change-data-feed client share schema table opts)

Returns a map with information about the table (protocol and metadata) along with its change data files since starting-version or starting-timestamp inclusively. The top-level :metadata returned is the first version in the requested range.

One of either the version or timestamp parameters must be passed.

The change data feed represents row-level changes between versions of a Delta table. It records change data for UPDATE, DELETE, and MERGE operations. See https://github.com/delta-io/delta-sharing/blob/main/PROTOCOL.md#read-change-data-feed-from-a-table for more. Only valid for tables with delta.enableChangeDataFeed enabled.

NOTE: Synthetic table columns _change_type, _commit_version, and _commit_timestamp are not added to the response. They can be derived by passing the response to a reader that reads the change file and table actions from the version respectively.

Delta sharing capability options:

  • :min-reader-version (int - default 1) Minimum reader version to support. See https://github.com/delta-io/delta/blob/master/PROTOCOL.md#valid-feature-names-in-table-features for more. Supported reader versions include: 1 {:response-format 'parquet'} 2 {:response-format 'delta' :reader-features 'columnMapping'} 3 {:response-format 'delta' :reader-features 'columnMapping,deletionVectors,timestampNtz,v2Checkpoint,vacuumProtocolCheck'}
  • :response-format (string - default 'parquet') The default table format to respond with. Overrides the one from min-reader-version when set.
  • :reader-features (string - default none) Advanced table features on the requested table. Requires a response format in delta. Overrides the one from min-reader-version when set.

Delta sharing parameters: [:starting-timestamp,:ending-timestamp,:starting-version,:ending-version,:include-historical-metadata?]

Returns a map with information about the table (protocol and metadata) along with its change data files since `starting-version`
or `starting-timestamp` inclusively. The top-level `:metadata` returned is the first version in the requested range.

One of either the version or timestamp parameters must be passed.

The change data feed represents row-level changes between versions of a Delta table. It records change data
for UPDATE, DELETE, and MERGE operations. See https://github.com/delta-io/delta-sharing/blob/main/PROTOCOL.md#read-change-data-feed-from-a-table 
for more. Only valid for tables with `delta.enableChangeDataFeed` enabled.

NOTE: Synthetic table columns `_change_type`, `_commit_version`, and `_commit_timestamp` are not added to the response. They can be derived
by passing the response to a reader that reads the change file and table actions from the version respectively. 

Delta sharing capability options:
 - `:min-reader-version` (int - default 1) Minimum reader version to support. See 
 https://github.com/delta-io/delta/blob/master/PROTOCOL.md#valid-feature-names-in-table-features for more.
 Supported reader versions include:
 1 {:response-format 'parquet'}
 2 {:response-format 'delta' :reader-features 'columnMapping'}
 3 {:response-format 'delta' :reader-features 'columnMapping,deletionVectors,timestampNtz,v2Checkpoint,vacuumProtocolCheck'}
 - `:response-format` (string - default 'parquet') The default table format to respond with. Overrides the one from
 `min-reader-version` when set.
 - `:reader-features` (string - default none) Advanced table features on the requested table. Requires a
 response format in delta. Overrides the one from `min-reader-version` when set.

 Delta sharing parameters: 
 [`:starting-timestamp`,`:ending-timestamp`,`:starting-version`,`:ending-version`,`:include-historical-metadata?`]
sourceraw docstring

read-table-dataclj

(read-table-data client share schema table)
(read-table-data client share schema table opts)

Returns a map with information about the latest version of the table including its :protocol, :metadata. Provides the downloadable data files under :files for the latest version (or the requested version when :version is set). Otherwise, a collection of change data files is returned under :change-data-actions along with any historical metadata.

See https://github.com/delta-io/delta-sharing/blob/main/PROTOCOL.md#read-data-from-a-table for more. And https://github.com/delta-io/delta-sharing/blob/main/PROTOCOL.md#request-body for more about the request parameters.

Delta sharing capability options:

  • :min-reader-version (int - default 1) Minimum reader version to support. See https://github.com/delta-io/delta/blob/master/PROTOCOL.md#valid-feature-names-in-table-features for more. Supported reader versions include: 1 {:response-format 'parquet'} 2 {:response-format 'delta' :reader-features 'columnMapping'} 3 {:response-format 'delta' :reader-features 'columnMapping,deletionVectors,timestampNtz,v2Checkpoint,vacuumProtocolCheck'}
  • :response-format (string - default 'parquet') The default table format to respond with. Overrides the one from min-reader-version when set.
  • :reader-features (string - default none) Advanced table features on the requested table. Requires a response format in delta. Overrides the one from min-reader-version when set.

Supported delta sharing options: [:predicate-hints,:json-predicate-hints,:limit-hint,:version,:timestamp,:starting-version,:ending-version]

Returns a map with information about the latest version of the table including its `:protocol`, `:metadata`.
Provides the downloadable data files under `:files` for the latest version (or the requested version when `:version` is set).
Otherwise, a collection of change data files is returned under `:change-data-actions` along with any historical metadata.

See https://github.com/delta-io/delta-sharing/blob/main/PROTOCOL.md#read-data-from-a-table for more. And
https://github.com/delta-io/delta-sharing/blob/main/PROTOCOL.md#request-body for more about the request parameters.

Delta sharing capability options:
 - `:min-reader-version` (int - default 1) Minimum reader version to support. See 
 https://github.com/delta-io/delta/blob/master/PROTOCOL.md#valid-feature-names-in-table-features for more.
 Supported reader versions include:
 1 {:response-format 'parquet'}
 2 {:response-format 'delta' :reader-features 'columnMapping'}
 3 {:response-format 'delta' :reader-features 'columnMapping,deletionVectors,timestampNtz,v2Checkpoint,vacuumProtocolCheck'}
 - `:response-format` (string - default 'parquet') The default table format to respond with. Overrides the one from
 `min-reader-version` when set.
 - `:reader-features` (string - default none) Advanced table features on the requested table. Requires a
 response format in delta. Overrides the one from `min-reader-version` when set.

 Supported delta sharing options:
 [`:predicate-hints`,`:json-predicate-hints`,`:limit-hint`,`:version`,`:timestamp`,`:starting-version`,`:ending-version`]
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close