Files
greptimedb/tests/cases/standalone/common/function/matches_term.result
T
discord9andNing Sun 94d7e2c7fc feat!: upgrade DataFusion to 55 (#8555)
* feat!: upgrade DataFusion dependencies to 55

Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>

* refactor: migrate DataFusion 55 APIs

Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>

* fix: preserve table function planning behavior

Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>

* fix: preserve PostgreSQL query compatibility

Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>

* fix: preserve distributed execution plan behavior

Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>

* test: cover DataFusion 55 behavior regressions

Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>

* test: update DataFusion 55 SQLness expectations

Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>

* fix: complete DataFusion 55 test API migration

Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>

* fix: address DataFusion 55 CI regressions

Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>

* fix: address remaining DataFusion 55 regressions

Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>

* fix: adapt latest base code to DataFusion 55

Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>

* test: normalize environment-specific DataFusion 55 plans

Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>

* test: align final DataFusion 55 expectations

Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>

* test: isolate DataFusion 55 regression cases

Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>

* test: preserve empty result schema in timestamp widening

Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>

* test: preserve JSON source column order

Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>

* chore: use released DataFusion 55 integrations

Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>

* test: adapt latest execution plan mock to DataFusion 55

Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>

* fix: pin DataFusion recursive schema and date repairs

Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>

* fix(promql): align dictionary temporality match keys

Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>

* fix: retain Greptime DataFusion fork behaviors on version 55

Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>

* test: restore ordinary function error expectations

Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>

* test: refresh distributed count compatibility plan

Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>

* fix(query): adapt last-row cast hint to DataFusion 55

Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>

* test: refresh instant last-row empty results for Arrow 59

Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>

* style: simplify DataFusion expression visitor imports

Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>

* test: restore sorting and PostgreSQL column-order assertions

Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>

* fix(function): restore primitive numeric coercion signatures

Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>

* refactor(function): share geo integer signature types

Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>

* test: cover timestamp widening overflow boundaries

Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>

* test: fix decimal coercion regression imports

Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>

* fix(function): preserve scalar count_hash NULL state semantics

Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>

* test: simplify decimal clamp case type inference

Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>

* test: retain historical count_hash wrapper result

Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>

* fix: restore timestamp widening equality and IN pruning

Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>

* fix: carry upstream aggregate dynamic filter correctness fix

Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>

* fix: carry upstream null and predicate simplification fixes

Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>

* test: restore baseline JSON ordering expectations

Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>

* test: restore histogram JSON ordering expectations

Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>

* test: refresh empty PromQL range result schemas

Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>

* test: align native timestamp plan with DF55 decimal display

Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>

* test: refresh native timestamp SQLness results for DF55

Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>

* test: regenerate NULL sample empty result headers for DF55

Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>

* test: use DF55 child replacement API in timestamp regressions

Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>

* fix: expose pushed scan dynamic filters to DF55 producers

Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>

* fix: encode string-backed PostgreSQL OID aliases in binary results

Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>

* test: verify REGPROC binary and text over PostgreSQL protocol

Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>

* test: register real PostgreSQL catalogs in server fixtures

Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>

* fix: complete DF55 expression inventories for custom query plans

Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>

* test: correct RangeSelect expression fixture and column identities

Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>

* ci: wait for Kafka WAL helper deployment rollout

Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>

* test: update custom storage empty result headers

Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>

* fix: require exact row counts in scan statistics

Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>

* fix: suppress deprecated partition_statistics warning in test

Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>

---------

Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>
Co-authored-by: Ning Sun <sunng@protonmail.com>
2026-09-15 11:42:38 +00:00

515 lines
25 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
-- Test basic term matching
-- Expect: true
SELECT matches_term('cat!', 'cat') as result;
+--------+
| result |
+--------+
| true |
+--------+
-- Test phrase matching with spaces
-- Expect: true
SELECT matches_term('warning:hello world!', 'hello world') as result;
+--------+
| result |
+--------+
| true |
+--------+
-- Test numbers in term
SELECT matches_term('v1.0!', 'v1.0') as result;
+--------+
| result |
+--------+
| true |
+--------+
-- Test case sensitivity
-- Expect: true
SELECT matches_term('Cat', 'Cat') as result;
+--------+
| result |
+--------+
| true |
+--------+
-- Expect: false
SELECT matches_term('cat', 'Cat') as result;
+--------+
| result |
+--------+
| false |
+--------+
-- Test empty string handling
-- Expect: true
SELECT matches_term('', '') as result;
+--------+
| result |
+--------+
| true |
+--------+
-- Expect: false
SELECT matches_term('any', '') as result;
+--------+
| result |
+--------+
| false |
+--------+
-- Expect: false
SELECT matches_term('', 'any') as result;
+--------+
| result |
+--------+
| false |
+--------+
-- Test partial matches (should fail)
-- Expect: false
SELECT matches_term('category', 'cat') as result;
+--------+
| result |
+--------+
| false |
+--------+
-- Expect: false
SELECT matches_term('rebooted', 'boot') as result;
+--------+
| result |
+--------+
| false |
+--------+
-- Test adjacent alphanumeric characters
SELECT matches_term('cat5', 'cat') as result;
+--------+
| result |
+--------+
| false |
+--------+
SELECT matches_term('dogcat', 'dog') as result;
+--------+
| result |
+--------+
| false |
+--------+
-- Test leading non-alphanumeric
-- Expect: true
SELECT matches_term('dog/cat', '/cat') as result;
+--------+
| result |
+--------+
| true |
+--------+
-- Expect: true
SELECT matches_term('dog/cat', 'dog/') as result;
+--------+
| result |
+--------+
| true |
+--------+
-- Expect: true
SELECT matches_term('dog/cat', 'dog/cat') as result;
+--------+
| result |
+--------+
| true |
+--------+
-- Test unicode characters
-- Expect: true
SELECT matches_term('café>', 'café') as result;
+--------+
| result |
+--------+
| true |
+--------+
-- Expect: true
SELECT matches_term('русский!', 'русский') as result;
+--------+
| result |
+--------+
| true |
+--------+
-- Phase 1 mixed Chinese and numeric behavior
SELECT matches_term('登录手机号18888888888的动态key', '手机号') as result;
+--------+
| result |
+--------+
| true |
+--------+
SELECT matches_term('登录手机号18888888888的动态key', '18888888888') as result;
+--------+
| result |
+--------+
| true |
+--------+
SELECT matches_term('登录手机号18888888888的动态key', '手机') as result;
+--------+
| result |
+--------+
| true |
+--------+
SELECT matches_term('登录手机号18888888888的动态key', '机号') as result;
+--------+
| result |
+--------+
| true |
+--------+
SELECT matches_term('登录手机号18888888888的动态key', '机号1888') as result;
+--------+
| result |
+--------+
| true |
+--------+
SELECT matches_term('中国农业银行', '农业') as result;
+--------+
| result |
+--------+
| true |
+--------+
SELECT matches_term('中国农业银行账号', '行账号') as result;
+--------+
| result |
+--------+
| true |
+--------+
SELECT matches_term('错误error日志', 'error') as result;
+--------+
| result |
+--------+
| true |
+--------+
SELECT matches_term('trace_id=abc', 'trace_id') as result;
+--------+
| result |
+--------+
| true |
+--------+
SELECT matches_term('ship__ship', 'ship__ship') as result;
+--------+
| result |
+--------+
| true |
+--------+
SELECT matches_term('__IDENTIFIER__', '__IDENTIFIER__') as result;
+--------+
| result |
+--------+
| true |
+--------+
SELECT matches_term('_ship', '_ship') as result;
+--------+
| result |
+--------+
| true |
+--------+
SELECT matches_term('ship_', 'ship_') as result;
+--------+
| result |
+--------+
| true |
+--------+
-- Test complete word matching
CREATE TABLE logs (
`id` TIMESTAMP TIME INDEX,
`log_message` STRING
);
Affected Rows: 0
INSERT INTO logs VALUES
(1, 'An error occurred!'),
(2, 'Critical error: system failure'),
(3, 'error-prone'),
(4, 'errors'),
(5, 'error123'),
(6, 'errorLogs'),
(7, 'Version v1.0 released'),
(8, 'v1.0!'),
(9, 'v1.0a'),
(10, 'v1.0beta'),
(11, 'GET /app/start'),
(12, 'Command: /start-prosess'),
(13, 'Command: /start'),
(14, 'start'),
(15, 'start/stop'),
(16, 'Alert: system failure detected'),
(17, 'system failure!'),
(18, 'system-failure'),
(19, 'system failure2023'),
(20, 'critical error: system failure'),
(21, 'critical failure detected'),
(22, 'critical issue'),
(23, 'failure imminent'),
(24, 'Warning: high temperature'),
(25, 'WARNING: system overload'),
(26, 'warned'),
(27, 'warnings');
Affected Rows: 27
-- Test complete word matching for 'error'
-- Expect:
-- 1|An error occurred!|true
-- 2|Critical error: system failure|true
-- 3|error-prone|true
-- 4|errors|false
-- 5|error123|false
-- 6|errorLogs|false
SELECT `id`, `log_message`, matches_term(`log_message`, 'error') as `matches_error` FROM logs WHERE `id` <= 6 ORDER BY `id`;
+-------------------------+--------------------------------+---------------+
| id | log_message | matches_error |
+-------------------------+--------------------------------+---------------+
| 1970-01-01T00:00:00.001 | An error occurred! | true |
| 1970-01-01T00:00:00.002 | Critical error: system failure | true |
| 1970-01-01T00:00:00.003 | error-prone | true |
| 1970-01-01T00:00:00.004 | errors | false |
| 1970-01-01T00:00:00.005 | error123 | false |
| 1970-01-01T00:00:00.006 | errorLogs | false |
+-------------------------+--------------------------------+---------------+
-- Test complete word matching for 'v1.0'
-- Expect:
-- 7|Version v1.0 released|true
-- 8|v1.0!|true
-- 9|v1.0a|false
-- 10|v1.0beta|false
SELECT `id`, `log_message`, matches_term(`log_message`, 'v1.0') as `matches_version` FROM logs WHERE `id` BETWEEN 7 AND 10 ORDER BY `id`;
+-------------------------+-----------------------+-----------------+
| id | log_message | matches_version |
+-------------------------+-----------------------+-----------------+
| 1970-01-01T00:00:00.007 | Version v1.0 released | true |
| 1970-01-01T00:00:00.008 | v1.0! | true |
| 1970-01-01T00:00:00.009 | v1.0a | false |
| 1970-01-01T00:00:00.010 | v1.0beta | false |
+-------------------------+-----------------------+-----------------+
-- Test complete word matching for '/start'
-- Expect:
-- 11|GET /app/start|true
-- 12|Command: /start-prosess|true
-- 13|Command: /start|true
-- 14|start|false
-- 15|start/stop|false
SELECT `id`, `log_message`, matches_term(`log_message`, '/start') as `matches_start` FROM logs WHERE `id` BETWEEN 11 AND 15 ORDER BY `id`;
+-------------------------+-------------------------+---------------+
| id | log_message | matches_start |
+-------------------------+-------------------------+---------------+
| 1970-01-01T00:00:00.011 | GET /app/start | true |
| 1970-01-01T00:00:00.012 | Command: /start-prosess | true |
| 1970-01-01T00:00:00.013 | Command: /start | true |
| 1970-01-01T00:00:00.014 | start | false |
| 1970-01-01T00:00:00.015 | start/stop | false |
+-------------------------+-------------------------+---------------+
-- Test phrase matching for 'system failure'
-- Expect:
-- 16|Alert: system failure detected|true
-- 17|system failure!|true
-- 18|system-failure|false
-- 19|system failure2023|false
SELECT `id`, `log_message`, matches_term(`log_message`, 'system failure') as `matches_phrase` FROM logs WHERE `id` BETWEEN 16 AND 19 ORDER BY `id`;
+-------------------------+--------------------------------+----------------+
| id | log_message | matches_phrase |
+-------------------------+--------------------------------+----------------+
| 1970-01-01T00:00:00.016 | Alert: system failure detected | true |
| 1970-01-01T00:00:00.017 | system failure! | true |
| 1970-01-01T00:00:00.018 | system-failure | false |
| 1970-01-01T00:00:00.019 | system failure2023 | false |
+-------------------------+--------------------------------+----------------+
-- Test multi-word matching using AND
-- Expect:
-- 20|critical error: system failure|true|true|true
-- 21|critical failure detected|true|true|true
-- 22|critical issue|true|false|false
-- 23|failure imminent|false|true|false
SELECT `id`, `log_message`,
matches_term(`log_message`, 'critical') as `matches_critical`,
matches_term(`log_message`, 'failure') as `matches_failure`,
matches_term(`log_message`, 'critical') AND matches_term(`log_message`, 'failure') as `matches_both`
FROM logs WHERE `id` BETWEEN 20 AND 23 ORDER BY `id`;
+-------------------------+--------------------------------+------------------+-----------------+--------------+
| id | log_message | matches_critical | matches_failure | matches_both |
+-------------------------+--------------------------------+------------------+-----------------+--------------+
| 1970-01-01T00:00:00.020 | critical error: system failure | true | true | true |
| 1970-01-01T00:00:00.021 | critical failure detected | true | true | true |
| 1970-01-01T00:00:00.022 | critical issue | true | false | false |
| 1970-01-01T00:00:00.023 | failure imminent | false | true | false |
+-------------------------+--------------------------------+------------------+-----------------+--------------+
-- Test case-insensitive matching using lower()
-- Expect:
-- 24|Warning: high temperature|true
-- 25|WARNING: system overload|true
-- 26|warned|false
-- 27|warnings|false
SELECT `id`, `log_message`, matches_term(lower(`log_message`), 'warning') as `matches_warning` FROM logs WHERE `id` >= 24 ORDER BY `id`;
+-------------------------+---------------------------+-----------------+
| id | log_message | matches_warning |
+-------------------------+---------------------------+-----------------+
| 1970-01-01T00:00:00.024 | Warning: high temperature | true |
| 1970-01-01T00:00:00.025 | WARNING: system overload | true |
| 1970-01-01T00:00:00.026 | warned | false |
| 1970-01-01T00:00:00.027 | warnings | false |
+-------------------------+---------------------------+-----------------+
DROP TABLE logs;
Affected Rows: 0
CREATE TABLE zh_logs (
`id` TIMESTAMP TIME INDEX,
`log_message` STRING FULLTEXT INDEX WITH(analyzer = 'Chinese', backend = 'bloom', case_sensitive = 'true', false_positive_rate = '0.01', granularity = '10240')
);
Affected Rows: 0
INSERT INTO zh_logs VALUES
(1, '[2026/04/09/ 13:56:11.031]2026-04-09 13:56:11.031 - [ trace_id=340a6a44b0bd8e37bb7697ss7da61ff0 span_id=085ff5ttf1e0a23b trace_flags=01] - [http-nio-8081-exec-16] INFO c.h.p.xx.web.service.impl.CCCXForwardKKKServiceImpl.pushout(188) - 登录手机号18888888888的动态key:829889AC8 ship_ship ship__ship __IDENTIFIER__ _ship ship_'),
(2, '哈基米曼波');
Affected Rows: 2
ADMIN flush_table('zh_logs');
+------------------------------+
| ADMIN flush_table('zh_logs') |
+------------------------------+
| 0 |
+------------------------------+
SELECT * FROM zh_logs where `log_message` @@ 'trace_id';
+-------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| id | log_message |
+-------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| 1970-01-01T00:00:00.001 | [2026/04/09/ 13:56:11.031]2026-04-09 13:56:11.031 - [ trace_id=340a6a44b0bd8e37bb7697ss7da61ff0 span_id=085ff5ttf1e0a23b trace_flags=01] - [http-nio-8081-exec-16] INFO c.h.p.xx.web.service.impl.CCCXForwardKKKServiceImpl.pushout(188) - 登录手机号18888888888的动态key:829889AC8 ship_ship ship__ship __IDENTIFIER__ _ship ship_ |
+-------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
SELECT * FROM zh_logs where `log_message` @@ 'ship_ship';
+-------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| id | log_message |
+-------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| 1970-01-01T00:00:00.001 | [2026/04/09/ 13:56:11.031]2026-04-09 13:56:11.031 - [ trace_id=340a6a44b0bd8e37bb7697ss7da61ff0 span_id=085ff5ttf1e0a23b trace_flags=01] - [http-nio-8081-exec-16] INFO c.h.p.xx.web.service.impl.CCCXForwardKKKServiceImpl.pushout(188) - 登录手机号18888888888的动态key:829889AC8 ship_ship ship__ship __IDENTIFIER__ _ship ship_ |
+-------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
SELECT * FROM zh_logs where `log_message` @@ 'ship__ship';
+-------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| id | log_message |
+-------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| 1970-01-01T00:00:00.001 | [2026/04/09/ 13:56:11.031]2026-04-09 13:56:11.031 - [ trace_id=340a6a44b0bd8e37bb7697ss7da61ff0 span_id=085ff5ttf1e0a23b trace_flags=01] - [http-nio-8081-exec-16] INFO c.h.p.xx.web.service.impl.CCCXForwardKKKServiceImpl.pushout(188) - 登录手机号18888888888的动态key:829889AC8 ship_ship ship__ship __IDENTIFIER__ _ship ship_ |
+-------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
SELECT * FROM zh_logs where `log_message` @@ '__IDENTIFIER__';
+-------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| id | log_message |
+-------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| 1970-01-01T00:00:00.001 | [2026/04/09/ 13:56:11.031]2026-04-09 13:56:11.031 - [ trace_id=340a6a44b0bd8e37bb7697ss7da61ff0 span_id=085ff5ttf1e0a23b trace_flags=01] - [http-nio-8081-exec-16] INFO c.h.p.xx.web.service.impl.CCCXForwardKKKServiceImpl.pushout(188) - 登录手机号18888888888的动态key:829889AC8 ship_ship ship__ship __IDENTIFIER__ _ship ship_ |
+-------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
SELECT * FROM zh_logs where `log_message` @@ '_ship';
+-------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| id | log_message |
+-------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| 1970-01-01T00:00:00.001 | [2026/04/09/ 13:56:11.031]2026-04-09 13:56:11.031 - [ trace_id=340a6a44b0bd8e37bb7697ss7da61ff0 span_id=085ff5ttf1e0a23b trace_flags=01] - [http-nio-8081-exec-16] INFO c.h.p.xx.web.service.impl.CCCXForwardKKKServiceImpl.pushout(188) - 登录手机号18888888888的动态key:829889AC8 ship_ship ship__ship __IDENTIFIER__ _ship ship_ |
+-------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
SELECT * FROM zh_logs where `log_message` @@ 'ship_';
+-------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| id | log_message |
+-------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| 1970-01-01T00:00:00.001 | [2026/04/09/ 13:56:11.031]2026-04-09 13:56:11.031 - [ trace_id=340a6a44b0bd8e37bb7697ss7da61ff0 span_id=085ff5ttf1e0a23b trace_flags=01] - [http-nio-8081-exec-16] INFO c.h.p.xx.web.service.impl.CCCXForwardKKKServiceImpl.pushout(188) - 登录手机号18888888888的动态key:829889AC8 ship_ship ship__ship __IDENTIFIER__ _ship ship_ |
+-------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
SELECT * FROM zh_logs where `log_message` @@ '登录_id';
+----+-------------+
| id | log_message |
+----+-------------+
+----+-------------+
SELECT * FROM zh_logs where `log_message` @@ '手机号_trace';
+----+-------------+
| id | log_message |
+----+-------------+
+----+-------------+
SELECT * FROM zh_logs where `log_message` @@ '手机';
+-------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| id | log_message |
+-------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| 1970-01-01T00:00:00.001 | [2026/04/09/ 13:56:11.031]2026-04-09 13:56:11.031 - [ trace_id=340a6a44b0bd8e37bb7697ss7da61ff0 span_id=085ff5ttf1e0a23b trace_flags=01] - [http-nio-8081-exec-16] INFO c.h.p.xx.web.service.impl.CCCXForwardKKKServiceImpl.pushout(188) - 登录手机号18888888888的动态key:829889AC8 ship_ship ship__ship __IDENTIFIER__ _ship ship_ |
+-------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
DROP TABLE zh_logs;
Affected Rows: 0