netmap: Add LIKE
operation for filter
#231
No reviewers
TrueCloudLab/storage-core-developers
Labels
No labels
P0
P1
P2
P3
good first issue
pool
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No milestone
No project
No assignees
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-sdk-go#231
Loading…
Reference in a new issue
No description provided.
Delete branch "acid-ant/frostfs-sdk-go:feature/policy-like"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Signed-off-by: Anton Nikiforov an.nikiforov@yadro.com
netmap: Addto WIP: netmap: AddLIKE
operation forfilter
LIKE
operation forfilter
WIP: netmap: Addto netmap: AddLIKE
operation forfilter
LIKE
operation forfilter
604bddb803
to5b729e10d5
@ -111,2 +112,4 @@
case netmap.EQ:
return b.Attribute(f.GetKey()) == f.GetValue()
case netmap.LIKE:
if f.GetValue() == netmap.LikeWildcard {
The code below seems to work for this case, why have a separate branch in code?
Just to exit faster in this case. Removed.
@ -253,0 +294,4 @@
n, err := nm.ContainerNodes(pNamed, []byte{1})
require.NoError(t, err)
require.Equal(t, 1, len(n[0]))
Could you also add attributes check for all tests?
Added.
@ -253,0 +318,4 @@
n, err := nm.ContainerNodes(pNamed, []byte{1})
require.NoError(t, err)
require.Equal(t, 3, len(n[0]))
This does not differ from the previous test. Is there any reason we have 3 "Russia" in the test data?
No reason. Like this number. Updated a bit.
5b729e10d5
to50b2f45960
@ -3,1 +3,3 @@
go 1.20
go 1.21
replace git.frostfs.info/TrueCloudLab/frostfs-api-go/v2 v2.16.1-0.20240530152826-2f6d3209e1d3 => git.frostfs.info/acid-ant/frostfs-api-go/v2 v2.15.1-0.20240624130238-eed7162e683b
Debugee
@ -1,4 +1,4 @@
FROM golang:1.21
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install make openjdk-11-jre -y
Why do we need OpenJDK here?
To have ability for running
antlr
indocker
.@ -1,4 +1,4 @@
FROM golang:1.21
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install make openjdk-11-jre -y
Why do we need OpenJDK here?
To have ability for running
antlr
indocker
.50b2f45960
toe6a10fc92d
e6a10fc92d
to361699ac58
361699ac58
to2077b35736
Rebased on master.