WHAT IT ANSWERS
这张表适合回答什么
- 按 canonical_dataset_id 拉取普查类明细事实
- 用 family 与 dimensions 做维度筛选
- 先在 canonical_dataset_registry 里查到数据集再取数
DATASET · qveris
qveris.generic_record
QVeris 并集通用事实表的**朋友可见子集**。只包含许可登记为公有领域的数据集(美国普查局 / Weather.gov / USGS),按 canonical_dataset_id 过滤;付费聚合源、交易所公开数据与 Stack Exchange 内容不在其中。查询必须指定 canonical_dataset_id。
event_tsWHAT IT ANSWERS
GRAIN & TIME
KEY FIELDS
canonical_dataset_idcanonical_record_keyRECOMMENDED JOINS
该表主要按自身业务键使用,目前没有推荐的跨表主键联接。
HOW TO QUERY SAFELY
先用 catalog 确认当前契约;必须提供 canonical_dataset_id;单页最多 2000 行,该表不提供稳定 cursor,结果过大时必须缩小标的、日期或其他筛选。
MACHINE CONTRACT
canonical_dataset_id, canonical_record_key—relation_defaultcanonical_dataset_id→ canonical_dataset_id · string · 必填entity_key→ entity_key · stringfamily→ family · stringPOINT IN TIME
该资产没有 PIT 契约。普通 rows 端点仍按当前公开读模式返回数据;不要把它表述成历史时点快照。
COPY-READY CALLS
同一数据集可用 HTTP、Python SDK、CLI 或 MCP;Key 始终只通过环境变量/Bearer Header 传递。
curl --fail-with-body -H "Authorization: Bearer $FRIENDS_DATA_API_KEY" "https://api.alphahubs.uk/api/v1/data/datasets/qveris/generic_record/rows?limit=100&canonical_dataset_id=FILTER_VALUE&start=2026-08-01&end=2026-08-01"from friends_data_api import FriendsDataClient, Settings
async with FriendsDataClient(Settings.from_env()) as client:
page = await client.get_dataset_rows('qveris', 'generic_record', limit=100, start='2026-08-01', end='2026-08-01', filters={'canonical_dataset_id': 'FILTER_VALUE'})
print(page.data)
if page.has_more:
print("next cursor:", page.next_cursor)friends-data get-dataset-rows qveris generic_record --limit 100 --start 2026-08-01 --end 2026-08-01 --filter canonical_dataset_id=FILTER_VALUE{
"arguments": {
"dataset": "generic_record",
"end": "2026-08-01",
"filters": {
"canonical_dataset_id": "FILTER_VALUE"
},
"limit": 100,
"namespace": "qveris",
"start": "2026-08-01"
},
"tool": "get_dataset_rows"
}FIELD DICTIONARY
descriptionSource 可在 JSON 中区分仓库注释、标准术语表和名称推导说明。
| # | 字段 | ClickHouse 类型 | JSON | 可空 | 角色 | 说明 |
|---|---|---|---|---|---|---|
| 1 | canonical_dataset_id | String | string | no | filter, required_filter, default_order | Identifier for canonical dataset.名称推导 |
| 2 | canonical_record_key | String | string | no | default_order | Source-normalized field: canonical record key.名称推导 |
| 3 | family | LowCardinality(String) | string | no | filter | Source-normalized field: family.名称推导 |
| 4 | entity_key | String | string | no | filter | Source-normalized field: entity key.名称推导 |
| 5 | event_tsUTC_datetime | Nullable(DateTime64(3, 'UTC')) | string / date-time | yes | time | UTC timestamp of the normalized event.标准术语表 |
| 6 | observed_atUTC_datetime | DateTime64(3, 'UTC') | string / date-time | no | value | UTC timestamp for observed at.名称推导 |
| 7 | dimensions | Map(String, String) | object | no | value | Source-normalized field: dimensions.名称推导 |
| 8 | metrics | Map(String, Float64) | object | no | value | Source-normalized field: metrics.名称推导 |
| 9 | source_tool_id | String | string | no | value | Identifier for source tool.名称推导 |
| 10 | source_record_id | String | string | no | provenance | Provider-side identifier for the source record.标准术语表 |
| 11 | ingest_run_id | String | string | no | provenance | Identifier of the ingestion run that produced the row.标准术语表 |
| 12 | version_tsUTC_datetime | DateTime64(3, 'UTC') | string / date-time | no | provenance | UTC timestamp associated with the row version.标准术语表 |
换一个字段名、类型或角色。
结构来自 Friends 只读身份可见的真实 serving relation;权限、过滤、排序、PIT 与分页来自可执行 DatasetSpec。Schema observed at 2026-10-06T18:08:52Z。