CREATE CATALOG Syntax
TABLE FORMAT & TYPE combinations are supported:
A catalog must be given either a
DATASOURCE or an
access_delegation of vended_credentials.Parameters
OR REPLACE
OR REPLACE
Any existing catalog with the same name will be dropped before creating
this one. As there is no
ALTER CATALOG statement, this is how an
existing catalog is modified.EXTERNAL
EXTERNAL
Optional keyword; has no effect on the catalog created.
<catalog name>
<catalog name>
Name of the catalog to create; must adhere to the supported
naming criteria. Cannot be
schema-qualified.
LOCATION
LOCATION
URI of the external catalog. Optional; its meaning depends on the catalog
type—see Format-Specific Syntax.
TABLE FORMAT
TABLE FORMAT
Required. Table format the catalog serves.
TYPE
TYPE
Required. Catalog implementation. Must pair with
TABLE FORMAT as
listed above.CREDENTIAL
CREDENTIAL
Name of the credential used to
authenticate to the external catalog.
DATASOURCE
DATASOURCE
Name of the data source supplying the
object store connection for the data files.
Catalog Options
The following options may be given in theWITH OPTIONS clause:
access_delegation
access_delegation
How Kinetica authenticates to the object store holding the data files.
datasource_credentials(default) - use the credentials on theDATASOURCEvended_credentials- use short-lived credentials issued by the external catalog
recreate
recreate
Whether to replace an existing catalog of the same name.
skip_validation
skip_validation
Whether to bypass validation of the connection to the external catalog.
The default value is
false.region &
warehouse for AWS Glue—are supplied this way; see
Format-Specific Syntax.
Format-Specific Syntax
Apache Iceberg (REST)
TheLOCATION is the REST catalog URI, and the DATASOURCE supplies the
object store connection for the data files.
CREATE CATALOG (Iceberg REST) Example
Apache Iceberg (AWS Glue)
For AWS Glue, theCREDENTIAL carries the Glue API keys and the
DATASOURCE carries the object store keys. The region & warehouse
options are required; LOCATION is an optional Glue endpoint override.
CREATE CATALOG (Iceberg Glue) Example
access_delegation to vended_credentials has Glue issue
short-lived credentials for reading the data files, and requires no
DATASOURCE:
CREATE CATALOG (Iceberg Glue, Vended Credentials) Example
Delta Lake (Unity Catalog)
Unity Catalog authenticates with a bearer token. There is no token credential type, so the token is given in theWITH OPTIONS clause of a
rest credential with an empty SECRET:
CREATE CREDENTIAL (Unity Catalog) Example
LOCATION is the Unity Catalog workspace URL; a trailing
/api/2.1/unity-catalog is accepted and ignored.
CREATE CATALOG (Delta Lake Unity) Example
Examples
To replace an existing catalog, which is how a catalog is modified in the absence of anALTER CATALOG statement:
CREATE OR REPLACE CATALOG Example
CREATE EXTERNAL TABLE over a Catalog Example