Skip to main content
Sets the session’s default catalog, in which table names that are not qualified with a catalog then resolve.
This command is only available through KiSQL or database clients configured with the Kinetica JDBC driver.
SET CATALOG Syntax
Setting the catalog to KINETICA restores the database itself as the default. While an external catalog is the default:
  • A table name with no schema resolves in the catalog’s SCHEMA option—see Catalog Options.
  • A table name of the form <schema>.<table> resolves in the catalog.
  • Common table expressions and the ki_catalog, information_schema, pg_catalog & sys_* schemas still resolve in the database.
  • Only SELECT, SHOW & DESCRIBE statements are accepted; other statements are rejected until the default is set back to KINETICA.

Examples

To make a JDBC catalog the session’s default:
SET CATALOG Example
A table name with no schema then resolves in the catalog’s SCHEMA:
Query Default Catalog Example
A DDL statement is rejected while an external catalog is the default:
Rejected DDL Example
DDL Output
To restore the database itself as the default:
Restore Default Catalog Example