Proto Annotations
import "sf/substreams/sink/sql/schema/v1/schema.proto";Table Options
message MyTable {
option (schema.table) = {
name: "my_table"
clickhouse_table_options: {
order_by_fields: [{name: "id"}]
partition_fields: [{name: "created_date", function: toYYYYMM}]
index_fields: [{
field_name: "status"
name: "status_idx"
type: bloom_filter
granularity: 4
}]
}
};
}Child Tables
Field Options
Type Mappings
Protobuf Type
PostgreSQL Type
ClickHouse Type
Extended Numeric Types
String Conversion Type
PostgreSQL Type
ClickHouse Type
Use Case
ClickHouse-Specific Options
Table Engine
Querying with Reorg Safety
Performance Flags
Troubleshooting
Last updated
Was this helpful?

