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
I want to initiate a query using higher-order functions with the following sql, but I can't find the usage method in the document, how to use this query? select * from test_table where arrayExists(x -> x LIKE '192.168.1.1%',host_list)=1
The text was updated successfully, but these errors were encountered:
Since ORM will escape strings, you cannot directly pass the higher-order function string type to F, but you can easily customize a class and implement the str method, such as
classLambda:
def__init__(self, symbol: str):
self.symbol=symboldef__str__(self):
returnself.symbolF("arrayExists", Lambda("x -> x LIKE '192.168.1.1%'"), host_list)
I want to initiate a query using higher-order functions with the following sql, but I can't find the usage method in the document, how to use this query?
select * from test_table where arrayExists(x -> x LIKE '192.168.1.1%',host_list)=1
The text was updated successfully, but these errors were encountered: