DatasetWarehouse

Where a dataset's versions are created: the warehouse's DDL, which only a publication, a rollback and the end of a retirement run, each recorded by its event. The service binds the ClickHouse one.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract suspend fun create(artifact: DatasetArtifact): List<SourceColumn>

Runs artifact's DDL, creating (or replacing) its view, and gives the view's columns, in order; a DatasetWarehouseException says why it did not, or why a query node could not serve the view it made.

Link copied to clipboard
abstract suspend fun describe(select: String): List<SourceColumn>?

The columns select gives now, in order, as the warehouse describes it without running it; null when the warehouse cannot (a column it reads is gone, say).

Link copied to clipboard
abstract suspend fun drop(database: String, views: List<String>)

Drops the views of database that are there.