Hi folks, we want to redact a part of a string col...
# general
p
Hi folks, we want to redact a part of a string column that contains text as CSV. For example:
val1,val2,token,val3
to
val1,val2,[redacted],val3
My Google-fu hasn’t been of much help. How can I do this though the query console?
@User
m
Do you mean you're writing a query or?
p
Yes, I am writing a query.
m
There are some string functions, not sure if any of those would do the trick? https://docs.pinot.apache.org/users/user-guide-query/supported-transformations#string-functions How do you know what to redact?
p
Thanks @User, we have a regex.
m
maybe you can use
regexpExtract(String value, String regexp)
that one isn't documented
I'll do that
p
@User Can we query Pinot through an API?
or you can use language clients - https://docs.pinot.apache.org/users/clients
m
Thanks Mark
p
Thanks Mark this is really helpful.