Unable to use _ when doing get_partitions Boto3 call for filtering partitions by using Expression param

47 views Asked by At

I cannot use _ when doing get_partitions Boto3 call for filtering partitions by using Expression parameter:

response = client.get_partitions(
    Expression="partition_name LIKE '%_20231202%-%'",
    ...
)

Value of expression: partition_name LIKE '%_20231202%-%' where _20231202 should match for filtering. But _ is not getting matched for some reason. Tried various solutions on internet like \\_ ,\_,'[_]', escape '/', %\u005F.

Any other suggestions?

0

There are 0 answers