Skip to content

Commit 815e994

Browse files
authored
chore: Bump Trino to 442 in trino-iceberg demo (#48)
1 parent 7decc03 commit 815e994

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

stacks/trino-iceberg/trino.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
name: trino
66
spec:
77
image:
8-
productVersion: "428"
8+
productVersion: "442"
99
clusterConfig:
1010
listenerClass: external-unstable
1111
catalogLabelSelector:
@@ -116,29 +116,29 @@ data:
116116
trino.rego: |
117117
package trino
118118
119-
import future.keywords.in
119+
import rego.v1
120120
121121
default allow = false
122122
123123
# Allow non-batched access
124-
allow {
124+
allow if {
125125
is_admin
126126
}
127127
# Allow batched access
128-
extended[i] {
128+
batch contains i if {
129129
some i
130130
input.action.filterResources[i]
131131
is_admin
132132
}
133133
# Corner case: filtering columns is done with a single table item, and many columns inside
134-
extended[i] {
134+
batch contains i if {
135135
some i
136136
input.action.operation == "FilterColumns"
137137
count(input.action.filterResources) == 1
138138
input.action.filterResources[0].table.columns[i]
139139
is_admin
140140
}
141141
142-
is_admin() {
142+
is_admin() if {
143143
input.context.identity.user == "admin"
144144
}

0 commit comments

Comments
 (0)