weipang142857 commited on
Commit
90a49a7
·
verified ·
1 Parent(s): 9a80a9c

fix lake count (54,667) + breakdown

Browse files
Files changed (1) hide show
  1. docs/schema.md +61 -124
docs/schema.md CHANGED
@@ -1,143 +1,80 @@
1
  # `logo-lab/dlte` per-config schema reference
2
 
3
- ## `lake` config (5 splits)
4
 
5
- ### `parents_tabfact`, `parents_wtq`
 
 
 
6
 
7
- | Column | Type | Notes |
8
- |---|---|---|
9
- | `table_id` | string | original parent identifier (TabFact: `r-N`; WTQ: csv id) |
10
- | `source` | string | `tabfact` or `wtq` |
11
- | `n_rows` | int32 | parent row count |
12
- | `n_cols` | int32 | parent column count |
13
- | `header` | list<string> | column names |
14
- | `table_csv` | large_string | full parent serialized as CSV |
15
- | `provenance_url` | string | upstream link |
16
- | `license_tag` | string | per-row license inheritance |
17
-
18
- ### `targets`
19
 
20
- | Column | Type | Notes |
21
- |---|---|---|
22
- | `target_id` | string | unique fragment id |
23
- | `parent_id` | string | links to parents_*.table_id |
24
- | `parent_source` | string | `tabfact` or `wtq` |
25
- | `kind` | string | `union` or `join` |
26
- | `noise_tier` | string | `clean` / `schema` / `cell` / `hard` |
27
- | `removed_rows` | list<int32> | indices of rows removed from parent (only for `union`) |
28
- | `removed_cols` | list<int32> | indices of cols removed from parent (only for `join`) |
29
- | `table_csv` | large_string | the fragment table |
30
- | `license_tag` | string | inherited |
31
-
32
- ### `distractors`
33
 
34
  | Column | Type | Notes |
35
  |---|---|---|
36
- | `distractor_id` | string | matches `manifests/ckan_distractor_ids` |
37
- | `source` | string | always `lakebench_ckan` |
38
- | `table_csv` | large_string | the CKAN distractor table |
39
- | `license_tag` | string | `cc-by-4.0 (LakeBench Zenodo); per-portal upstream` |
40
 
41
- ### `queries`
42
 
43
- | Column | Type | Notes |
44
  |---|---|---|
45
- | `query_id` | string | seed query identifier |
46
- | `parent_id` | string | parent the query was derived from |
47
- | `parent_source` | string | `tabfact` or `wtq` |
48
- | `noise_tier` | string | |
49
- | `seed_csv` | large_string | the seed query (parent with rows + cols removed) |
50
- | `removed_rows` | list<int32> | the union target's rows |
51
- | `removed_cols` | list<int32> | the join target's cols |
52
- | `license_tag` | string | inherited |
53
-
54
- ## `manifests` config (8 splits)
55
-
56
- ### `splits`
 
 
 
 
 
 
 
 
 
 
 
57
 
58
  | Column | Type | Notes |
59
  |---|---|---|
60
- | `parent_id` | string | |
61
- | `split` | string | `train` / `dev` / `test` |
62
- | `parent_source` | string | |
63
-
64
- (827 train / 207 dev / 345 test rows)
65
-
66
- ### `parents_filtered`
67
-
68
- | Column | Type | Notes |
 
 
 
 
 
69
  |---|---|---|
70
- | `parent_id` | string | |
71
- | `parent_source` | string | |
72
- | `n_rows` | int32 | |
73
- | `n_cols` | int32 | |
74
- | `passes_filter` | bool | should always be `true` since this is the post-filter list |
75
- | `provenance_url` | string | |
 
76
 
77
- (1,379 rows)
78
 
79
- ### `fragments` (16,548 rows)
80
 
81
- | Column | Type | Notes |
82
- |---|---|---|
83
- | `fragment_id` | string | |
84
- | `parent_id` | string | |
85
- | `parent_source` | string | |
86
- | `kind` | string | `seed` / `union_target` / `join_target` |
87
- | `noise_tier` | string | |
88
- | `provenance` | string | JSON-encoded extra context |
89
 
90
- ### `lake` (the retrieval lake of exactly 47,772 tables)
91
-
92
- This split lists only the tables that are searchable in Stage-1 retrieval —
93
- **i.e., union/join targets + CKAN distractors**. Parents and query seeds are
94
- pipeline I/O (kept in the `lake` config's other splits and the `manifests`
95
- config, but not in *this* split).
96
-
97
- | Column | Type | Notes |
98
- |---|---|---|
99
- | `table_id` | string | |
100
- | `kind` | string | `union_target` / `join_target` / `distractor` (exactly these three) |
101
- | `parent_id` | string | nullable; only set for derivatives |
102
- | `parent_source` | string | nullable; `tabfact` or `wtq` for derivative targets |
103
- | `noise_tier` | string | nullable; `clean` / `schema` / `cell` / `hard` for targets only |
104
-
105
- ### `ckan_distractor_ids`
106
-
107
- | Column | Type | Notes |
108
- |---|---|---|
109
- | `distractor_id` | string | (36,740 rows; matches `lake.distractors.distractor_id`) |
110
-
111
- ### `query_tasks`
112
-
113
- | Column | Type | Notes |
114
- |---|---|---|
115
- | `query_id` | string | |
116
- | `parent_id` | string | |
117
- | `parent_source` | string | |
118
- | `noise_tier` | string | |
119
- | `task_type` | string | one of `union_only` / `join_only` / `union_and_join` |
120
- | `gt_union_target_ids` | list<string> | ground-truth union target fragment ids |
121
- | `gt_join_target_ids` | list<string> | ground-truth join target fragment ids |
122
-
123
- ### `gt_validation`
124
-
125
- Per-query validation rows used for the dev-split macro-F1 calibration of
126
- Stage-2 thresholds.
127
-
128
- | Column | Type | Notes |
129
- |---|---|---|
130
- | `query_id` | string | |
131
- | `gt_action` | string | `union` / `join` / `none` |
132
- | `gt_target_id` | string | nullable |
133
- | `metadata` | string | JSON-encoded |
134
-
135
- ### `table_maps`
136
-
137
- | Column | Type | Notes |
138
- |---|---|---|
139
- | `table_id` | string | |
140
- | `kind` | string | |
141
- | `parent_id` | string | |
142
- | `csv_path` | string | path within `lake/*` parquet (informational only — actual csv lives in `lake` config) |
143
- | `stage2_calibrated_thresholds` | string | JSON-encoded; only populated for the (Stage-1 backbone, Stage-2 model) calibration result rows used in the paper |
 
1
  # `logo-lab/dlte` per-config schema reference
2
 
3
+ Two configs:
4
 
5
+ - **`manifests`**: lightweight metadata as one parquet stream with a unified
6
+ `(record_type, record_json)` schema.
7
+ - **`lake`**: full table content (parents + fragments + distractors) with
8
+ typed columns + provenance keys.
9
 
10
+ ## `manifests` config
 
 
 
 
 
 
 
 
 
 
 
11
 
12
+ Single split (`train`), 109,336 records.
 
 
 
 
 
 
 
 
 
 
 
 
13
 
14
  | Column | Type | Notes |
15
  |---|---|---|
16
+ | `record_type` | `string` | one of: `parent`, `fragment`, `lake_table`, `split_assignment`, `query_task`, `ckan_distractor`, `fragmentation_config`, `gt_validation` |
17
+ | `record_json` | `string` | JSON-encoded record content (variable schema per `record_type`) |
 
 
18
 
19
+ ### `record_type` counts
20
 
21
+ | record_type | rows | source |
22
  |---|---|---|
23
+ | `lake_table` | 47,772 | `manifests/lake_manifest.jsonl` |
24
+ | `ckan_distractor` | 36,740 | `manifests/ckan_distractor_ids.txt` (one row per id) |
25
+ | `fragment` | 16,548 | `manifests/fragments_manifest.jsonl` |
26
+ | `query_task` | 5,516 | `ground_truth/query_tasks.jsonl` |
27
+ | `parent` | 1,379 | `manifests/parents_filtered.jsonl` |
28
+ | `split_assignment` | 1,379 | `manifests/splits.json` (one row per (parent_id, split)) |
29
+ | `fragmentation_config` | 1 | `config/fragmentation.json` |
30
+ | `gt_validation` | 1 | `ground_truth/gt_validation.json` |
31
+
32
+ ### Record schemas (after `json.loads(record_json)`)
33
+
34
+ - **`parent`**: `{parent_id, dataset, csv_path, csv_stem, table_id_in_embeddings, n_rows, n_cols, key_col, key_col_idx, key_uniqueness, key_non_null_ratio, key_is_text}`
35
+ - **`fragment`**: `{table_id, parent_id, split, role, fragment_type, noise_tier, replicate_id, csv_path, n_rows, n_cols, key_col_fragment, key_col_parent}`
36
+ - **`lake_table`**: `{table_id, source, parent_id, fragment_type, noise_tier, replicate_id, split, csv_path, n_rows, n_cols}` — the full lake of 47,772 (= 11,032 targets + 36,740 distractors)
37
+ - **`split_assignment`**: `{parent_id, split}` (split ∈ {train, dev, test})
38
+ - **`query_task`**: `{query_table_id, parent_id, split, noise_tier, replicate_id, relevant: [{table_id, relation}, ...]}`
39
+ - **`ckan_distractor`**: `{distractor_id}`
40
+ - **`fragmentation_config`**: full config blob (tiers, noise specs)
41
+ - **`gt_validation`**: validation ground truth blob
42
+
43
+ ## `lake` config
44
+
45
+ Single split (`train`), **54,667 rows** (= 1,379 parents + 16,548 fragments [5,516 query_seed + 5,516 target_union + 5,516 target_join] + 36,740 distractors). Sharded by byte budget (~1.5 GB raw per shard) so each parquet column page stays under the INT32 limit.
46
 
47
  | Column | Type | Notes |
48
  |---|---|---|
49
+ | `table_id` | `string` | unique within the lake |
50
+ | `kind` | `string` | `parent_tabfact` / `parent_wtq` / `target_union` / `target_join` / `query_seed` / `distractor` |
51
+ | `parent_id` | `string` | empty for distractors |
52
+ | `parent_source` | `string` | `tabfact` / `wtq` / empty (distractor) |
53
+ | `noise_tier` | `int32` | 0/1/2/3 for fragments; -1 for parents/distractors |
54
+ | `fragment_type` | `string` | `seed` / `union` / `join` / empty |
55
+ | `split` | `string` | `train` / `dev` / `test` / empty (distractors are unsplit) |
56
+ | `csv_text` | `large_string` | raw CSV content of the table |
57
+ | `n_rows` | `int32` | row count (excluding header) |
58
+ | `n_cols` | `int32` | column count |
59
+
60
+ ### Counts by `kind`
61
+
62
+ | kind | count | provenance |
63
  |---|---|---|
64
+ | `parent_tabfact` | 989 | TabFact (Chen et al., ICLR 2020) |
65
+ | `parent_wtq` | 390 | WikiTableQuestions (Pasupat & Liang, ACL 2015) |
66
+ | `target_union` | 5,516 | derived: row-blocks removed from parents |
67
+ | `target_join` | 5,516 | derived: column-blocks removed from parents |
68
+ | `query_seed` | 5,516 | derived: parent minus removed rows + columns |
69
+ | `distractor` | 36,740 | LakeBench-Srinivas Zenodo CKAN Subset pool |
70
+ | **Total** | **54,667** | — |
71
 
72
+ Of these, **47,772 = `target_union` + `target_join` + `distractor`** is the *retrieval lake* the pipeline searches over. The other 6,895 (1,379 parents + 5,516 query seeds) are released alongside as pipeline I/O.
73
 
74
+ ## Cross-config keys
75
 
76
+ - `manifests.lake_table.record_json["table_id"]` `lake.table_id` for `kind ∈ {target_union, target_join, distractor}`
77
+ - `manifests.parent.record_json["parent_id"]` ↔ `lake.parent_id` (and matches `lake.table_id` for `kind ∈ {parent_*}`)
78
+ - `manifests.split_assignment.record_json["parent_id"]` `lake.parent_id` for parent rows
 
 
 
 
 
79
 
80
+ Stage-2 calibrated thresholds for the (Stage-1 backbone, Stage-2 column model) pairs evaluated in the paper are not included in this release; they are deterministic given the dev split and reproducible from the operator spec in the paper appendix.