test/command/suite/select/function/in_records/match.test
raw| 1 | table_create Conditions TABLE_NO_KEY |
| 2 | column_create Conditions user_pattern COLUMN_SCALAR ShortText |
| 3 | |
| 4 | table_create Logs TABLE_NO_KEY |
| 5 | column_create Logs user COLUMN_SCALAR ShortText |
| 6 | |
| 7 | load --table Conditions |
| 8 | [ |
| 9 | {"user_pattern": "ali"}, |
| 10 | {"user_pattern": "ris"} |
| 11 | ] |
| 12 | |
| 13 | load --table Logs |
| 14 | [ |
| 15 | {"user": "alice"}, |
| 16 | {"user": "bob"}, |
| 17 | {"user": "chris"}, |
| 18 | {"user": "david"} |
| 19 | ] |
| 20 | |
| 21 | select Logs \ |
| 22 | --filter 'in_records(Conditions, user, "@", "user_pattern")' |