You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Scalars map to native PostgreSQL scalar types where possible
13
13
-`list<T>` maps to `T[]` when possible
@@ -59,7 +59,7 @@ SELECT lance_import(
59
59
'public',
60
60
'my_lance_table',
61
61
'/path/to/your/lance/table',
62
-
NULL
62
+
batch_size =>NULL
63
63
);
64
64
```
65
65
@@ -68,10 +68,6 @@ SELECT lance_import(
68
68
- The foreign table `public.my_lance_table`
69
69
- Composite types for nested `struct` fields, e.g. `public.lance_my_lance_table_meta`
70
70
71
-
Why not `IMPORT FOREIGN SCHEMA`?
72
-
73
-
- PostgreSQL's `IMPORT FOREIGN SCHEMA` callback can only emit `CREATE FOREIGN TABLE` statements, so it cannot also create composite types for nested `struct` columns. `lance_import` performs both type and table DDL in one step.
74
-
75
71
### 3) Query like a regular table
76
72
77
73
```sql
@@ -80,6 +76,35 @@ SELECT count(*) FROM public.my_lance_table;
80
76
SELECT*FROMpublic.my_lance_tableLIMIT10;
81
77
```
82
78
79
+
### 4) Attach and sync a Lance namespace
80
+
81
+
```sql
82
+
-- Plan only (no DDL).
83
+
SELECT*
84
+
FROM lance_attach_namespace('lance_srv', dry_run => true);
85
+
86
+
-- Attach a namespace subtree into local schemas/tables.
87
+
SELECT*
88
+
FROM lance_attach_namespace(
89
+
'lance_srv',
90
+
root_namespace_id => ARRAY[]::text[],
91
+
schema_prefix =>'lance',
92
+
batch_size =>NULL,
93
+
limit_per_list_call =>1000,
94
+
dry_run => false
95
+
);
96
+
97
+
-- Reconcile local objects with the remote namespace.
0 commit comments