Commit 0a49b00
Migrate Iceberg ApplyChangeLog to connector function
Move ApplyChangelogFunction from IcebergPlugin.getFunctions() to
IcebergConnector.getSystemFunctions() to make it available in the
iceberg.system namespace instead of presto.default namespace.
This follows the connector-level function pattern introduced in PR prestodb#25594
and improves function organization by keeping connector-specific
functions within their appropriate namespaces.
The function behavior remains unchanged – only the namespace changes
from presto.default to iceberg.system.
Resolves: prestodb#25849
Add test for ApplyChangeLog function in connector namespace
Add tests to TestIcebergTableChangelog to verify that the apply_changelog
function is correctly available in the iceberg.system namespace and
no longer accessible in the global or presto.default namespaces.
This ensures the migration from IcebergPlugin.getFunctions() to
IcebergConnector.getSystemFunctions() works as expected.1 parent 604587b commit 0a49b00
File tree
3 files changed
+33
-11
lines changed- presto-iceberg/src
- main/java/com/facebook/presto/iceberg
- test/java/com/facebook/presto/iceberg
3 files changed
+33
-11
lines changedLines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
218 | 219 | | |
219 | 220 | | |
220 | 221 | | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
221 | 230 | | |
Lines changed: 0 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
20 | | - | |
21 | 19 | | |
22 | 20 | | |
23 | 21 | | |
24 | 22 | | |
25 | | - | |
26 | 23 | | |
27 | 24 | | |
28 | 25 | | |
| |||
44 | 41 | | |
45 | 42 | | |
46 | 43 | | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | 44 | | |
Lines changed: 24 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
308 | 308 | | |
309 | 309 | | |
310 | 310 | | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
311 | 335 | | |
0 commit comments