MCPcopy Create free account
hub / github.com/rilldata/rill / QuerySchema

Method QuerySchema

runtime/drivers/olap.go:48–48  ·  view source on GitHub ↗

QuerySchema returns the schema of the sql without trying not to run the actual query.

(ctx context.Context, query string, args []any)

Source from the content-addressed store, hash-verified

46 Head(ctx context.Context, db, schema, table string, limit int64) (*Result, error)
47 // QuerySchema returns the schema of the sql without trying not to run the actual query.
48 QuerySchema(ctx context.Context, query string, args []any) (*runtimev1.StructType, error)
49 // InformationSchema enables introspecting the tables and views available in the OLAP driver.
50 InformationSchema() OLAPInformationSchema
51 // EstimateSize returns an estimate of the total data size in bytes.

Callers 5

TestQuerySchemaFunction · 0.65
testQuerySchemaFunction · 0.65
TestQuerySchemaFunction · 0.65
validateTimeDimensionMethod · 0.65
SchemaMethod · 0.65

Implementers 12

Connectionruntime/drivers/bigquery/bigquery.go
connectionruntime/drivers/druid/druid.go
Connectionruntime/drivers/athena/athena.go
Connectionruntime/drivers/redshift/redshift.go
connectionruntime/drivers/postgres/postgres.go
connectionruntime/drivers/mysql/mysql.go
connectionruntime/drivers/starrocks/starrocks.go
Connectionruntime/drivers/clickhouse/clickhouse.
connectionruntime/drivers/databricks/databricks.
connectionruntime/drivers/duckdb/duckdb.go
connectionruntime/drivers/pinot/pinot.go
connectionruntime/drivers/snowflake/snowflake.go

Calls

no outgoing calls

Tested by 3

TestQuerySchemaFunction · 0.52
testQuerySchemaFunction · 0.52
TestQuerySchemaFunction · 0.52