Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions import-automation/workflow/ingestion-helper/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -118,22 +118,6 @@ CREATE TABLE Cache (
value JSON,
) PRIMARY KEY(type, key, provenance);

CREATE TABLE VariableMetadata (
variable_measured STRING(1024) NOT NULL,
import_name STRING(1024) NOT NULL,
facet_id STRING(1024) NOT NULL,
observation_period STRING(1024),
measurement_method STRING(1024),
unit STRING(1024),
scaling_factor STRING(1024),
is_dc_aggregate BOOL,
total_observations INT64,
observed_places INT64,
min_date STRING(1024),
max_date STRING(1024),
place_types ARRAY<STRING(1024)>,
) PRIMARY KEY(variable_measured, import_name);

CREATE INDEX InEdge ON Edge(object_id, predicate, subject_id, provenance) OPTIONS (
columnar_policy = 'enabled'
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ def initialize_database(self, enable_embeddings=False):

required_tables = [
"Node", "Edge", "Observation", "ImportStatus", "IngestionHistory",
"ImportVersionHistory", "IngestionLock", "Cache", "VariableMetadata"
"ImportVersionHistory", "IngestionLock", "Cache"
]
required_indexes = ["InEdge", "VariableMeasuredObservationAbout"]
required_models = []
Expand Down
Loading