Query datasets hosted in the Spice.ai Cloud Platform. Discover available public datasets on Spicerack.
Create a Spice.ai Cloud Platform account and login with the CLI using spice login.
Example:
This configuration would load the following tables:
fromThe from field specifies which organization and application to load tables from. The format is:
organization: The Spice.ai organization that owns the applicationapplication: The specific application to load tables fromcatalog_name: (optional): A specific catalog within the application. If not specified, the application's default catalog is usedFor example:
This will create tables like:
If the remote application has tables in custom_catalog like:
They will be available locally as:
nameThe name field defines what catalog name the tables will be available under in the local Spice instance. For example, with the following configuration:
Then tables that exist in the remote application as:
Will be available locally as:
Queries are run against the marketplace catalog, like SELECT * FROM marketplace.schema1.table1.
includeUse the include field to specify which tables to include from the catalog. The include field supports glob patterns to match multiple tables:
schema_name.* - Include all tables from a specific schema*.table_name - Include all tables with a specific name from any schemaschema_name.table_name - Include a specific table from a schemaschema_name.table_prefix* - Include all tables in a schema that start with a prefixMultiple include patterns can be specified and are OR'ed together. For example:
paramsThe following parameters are supported for configuring the connection to the Spice Cloud catalog/tables:
| Parameter Name | Definition |
|---|---|
spiceai_api_key | Authorization API key from the Spice.ai Cloud Platform, used to login to the specified organization and app. |