DatasetArtifact
data class DatasetArtifact(val context: String, val name: String, val version: Int, val database: String, val view: String, val ddl: String, val scope: DatasetScope, val fields: List<DatasetField>, val sources: List<String>, val title: String? = null, val identity: String? = null, val eventTime: String? = null, val approvals: List<String> = emptyList(), val columns: List<SourceColumn> = emptyList(), val select: String = "")
One compiled version of a dataset (-2): the ClickHouse view of database that serves it, the ddl that creates it (audited with the publication), and what a query node needs to serve it without asking the catalog: its scope, its fields with their protection and lineage, its identity and eventTime columns. sources are the catalog's sources it reads; approvals say why publishing it takes an approver, empty when it does not. columns are the view's columns as the warehouse created them, their warehouse types: what a query node declares each field as; empty until the publication creates the view. select is the query the view is, which the catalog asks the warehouse to describe before it publishes a recompilation.
Constructors
Link copied to clipboard
constructor(context: String, name: String, version: Int, database: String, view: String, ddl: String, scope: DatasetScope, fields: List<DatasetField>, sources: List<String>, title: String? = null, identity: String? = null, eventTime: String? = null, approvals: List<String> = emptyList(), columns: List<SourceColumn> = emptyList(), select: String = "")