Details
-
Bug
-
Status: Closed (View Workflow)
-
Critical
-
Resolution: Fixed
-
10.11.6, 11.3.1, 10.4(EOL)
-
Debian11, docker
Description
Hello,
It appears as if I cannot use regular expressions against SPIDER engine tables.
I have searched the documentation for related configuration parameters, but I was unable to find any.
A Simple example can be seen below:
MariaDB [test_db]> CREATE TABLE `test_db`.`just_testing` ( |
`name` varchar(16) not null |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; |
|
MariaDB [test_db]> insert into `test_db`.`just_testing`(name) values ('TestSpiderRegex'); |
MariaDB [test_db]> select `name` from `test_db`.`just_testing` where `NAME` REGEXP '(Test|Spider|Regex)'; |
+-----------------+ |
| name | |
+-----------------+ |
| TestSpiderRegex |
|
+-----------------+ |
1 row in set (0.000 sec) |
Now, creating the respective SPIDER schema - table:
~MariaDB [test_db]> create database spider_test_db; |
MariaDB [test_db]> CREATE TABLE `spider_test_db`.`just_testing` ( |
`name` varchar(16) NOT NULL |
) ENGINE=SPIDER DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='wrapper "mysql", srv "dataNode", database "test_db", table "just_testing"'; |
|
MariaDB [spider_test_db]> select * from `spider_test_db`.`just_testing`; |
+-----------------+ |
| name | |
+-----------------+ |
| TestSpiderRegex |
|
+-----------------+~ |
Selecting with REGEXP fails:
~MariaDB [spider_test_db]> select `name` from `spider_test_db`.`just_testing` where `NAME` REGEXP '(Test|Spider|Regex)'; |
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'regexp(t0.`name` , '(Test|Spider|Regex)'))' at line 1~ |
Issue persists with all regular expressions I could try, in all queries I could try.
Thank you
Attachments
Activity
Field | Original Value | New Value |
---|---|---|
Description |
Hello,
It appears as if I cannot use regular expressions against SPIDER engine tables. I have searched the documentation for related configuration parameters, but I was unable to find any. A Simple example can be seen below: ~MariaDB [test_db]> CREATE TABLE `test_db`.`just_testing` ( `name` varchar(16) not null ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;~ ~MariaDB [test_db]> insert into `test_db`.`just_testing`(name) values ('TestSpiderRegex'); MariaDB [test_db]> select `name` from `test_db`.`just_testing` where `NAME` REGEXP '(Test|Spider|Regex)'; +-----------------+ | name | +-----------------+ | TestSpiderRegex | +-----------------+ 1 row in set (0.000 sec)~ Now, creating the respective SPIDER schema - table: ~MariaDB [test_db]> create database spider_test_db; MariaDB [test_db]> CREATE TABLE `spider_test_db`.`just_testing` ( `name` varchar(16) NOT NULL ) ENGINE=SPIDER DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='wrapper "mysql", srv "dataNodeGalera", database "test_db", table "just_testing"'; MariaDB [spider_test_db]> select * from `spider_test_db`.`just_testing`; +-----------------+ | name | +-----------------+ | TestSpiderRegex | +-----------------+~ Selecting with REGEXP fails: ~MariaDB [spider_test_db]> select `name` from `spider_test_db`.`just_testing` where `NAME` REGEXP '(Test|Spider|Regex)'; ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'regexp(t0.`name` , '(Test|Spider|Regex)'))' at line 1~ Issue persists with all regular expressions I could try, in all queries I could try. Thank you |
Hello,
It appears as if I cannot use regular expressions against SPIDER engine tables. I have searched the documentation for related configuration parameters, but I was unable to find any. A Simple example can be seen below: ^MariaDB [test_db]> CREATE TABLE `test_db`.`just_testing` ( `name` varchar(16) not null ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;~ ~MariaDB [test_db]> insert into `test_db`.`just_testing`(name) values ('TestSpiderRegex'); MariaDB [test_db]> select `name` from `test_db`.`just_testing` where `NAME` REGEXP '(Test|Spider|Regex)'; +-----------------+ | name | +-----------------+ | TestSpiderRegex | +-----------------+ 1 row in set (0.000 sec)^ Now, creating the respective SPIDER schema - table: ~MariaDB [test_db]> create database spider_test_db; MariaDB [test_db]> CREATE TABLE `spider_test_db`.`just_testing` ( `name` varchar(16) NOT NULL ) ENGINE=SPIDER DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='wrapper "mysql", srv "dataNodeGalera", database "test_db", table "just_testing"'; MariaDB [spider_test_db]> select * from `spider_test_db`.`just_testing`; +-----------------+ | name | +-----------------+ | TestSpiderRegex | +-----------------+~ Selecting with REGEXP fails: ~MariaDB [spider_test_db]> select `name` from `spider_test_db`.`just_testing` where `NAME` REGEXP '(Test|Spider|Regex)'; ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'regexp(t0.`name` , '(Test|Spider|Regex)'))' at line 1~ Issue persists with all regular expressions I could try, in all queries I could try. Thank you |
Description |
Hello,
It appears as if I cannot use regular expressions against SPIDER engine tables. I have searched the documentation for related configuration parameters, but I was unable to find any. A Simple example can be seen below: ^MariaDB [test_db]> CREATE TABLE `test_db`.`just_testing` ( `name` varchar(16) not null ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;~ ~MariaDB [test_db]> insert into `test_db`.`just_testing`(name) values ('TestSpiderRegex'); MariaDB [test_db]> select `name` from `test_db`.`just_testing` where `NAME` REGEXP '(Test|Spider|Regex)'; +-----------------+ | name | +-----------------+ | TestSpiderRegex | +-----------------+ 1 row in set (0.000 sec)^ Now, creating the respective SPIDER schema - table: ~MariaDB [test_db]> create database spider_test_db; MariaDB [test_db]> CREATE TABLE `spider_test_db`.`just_testing` ( `name` varchar(16) NOT NULL ) ENGINE=SPIDER DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='wrapper "mysql", srv "dataNodeGalera", database "test_db", table "just_testing"'; MariaDB [spider_test_db]> select * from `spider_test_db`.`just_testing`; +-----------------+ | name | +-----------------+ | TestSpiderRegex | +-----------------+~ Selecting with REGEXP fails: ~MariaDB [spider_test_db]> select `name` from `spider_test_db`.`just_testing` where `NAME` REGEXP '(Test|Spider|Regex)'; ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'regexp(t0.`name` , '(Test|Spider|Regex)'))' at line 1~ Issue persists with all regular expressions I could try, in all queries I could try. Thank you |
Hello,
It appears as if I cannot use regular expressions against SPIDER engine tables. I have searched the documentation for related configuration parameters, but I was unable to find any. A Simple example can be seen below: bq. ^MariaDB [test_db]> CREATE TABLE `test_db`.`just_testing` ( bq. `name` varchar(16) not null bq. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;~ bq. bq. ~MariaDB [test_db]> insert into `test_db`.`just_testing`(name) values ('TestSpiderRegex'); bq. MariaDB [test_db]> select `name` from `test_db`.`just_testing` where `NAME` REGEXP '(Test|Spider|Regex)'; bq. +-----------------+ bq. | name | bq. +-----------------+ bq. | TestSpiderRegex | bq. +-----------------+ bq. 1 row in set (0.000 sec)^ Now, creating the respective SPIDER schema - table: ~MariaDB [test_db]> create database spider_test_db; MariaDB [test_db]> CREATE TABLE `spider_test_db`.`just_testing` ( `name` varchar(16) NOT NULL ) ENGINE=SPIDER DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='wrapper "mysql", srv "dataNodeGalera", database "test_db", table "just_testing"'; MariaDB [spider_test_db]> select * from `spider_test_db`.`just_testing`; +-----------------+ | name | +-----------------+ | TestSpiderRegex | +-----------------+~ Selecting with REGEXP fails: ~MariaDB [spider_test_db]> select `name` from `spider_test_db`.`just_testing` where `NAME` REGEXP '(Test|Spider|Regex)'; ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'regexp(t0.`name` , '(Test|Spider|Regex)'))' at line 1~ Issue persists with all regular expressions I could try, in all queries I could try. Thank you |
Description |
Hello,
It appears as if I cannot use regular expressions against SPIDER engine tables. I have searched the documentation for related configuration parameters, but I was unable to find any. A Simple example can be seen below: bq. ^MariaDB [test_db]> CREATE TABLE `test_db`.`just_testing` ( bq. `name` varchar(16) not null bq. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;~ bq. bq. ~MariaDB [test_db]> insert into `test_db`.`just_testing`(name) values ('TestSpiderRegex'); bq. MariaDB [test_db]> select `name` from `test_db`.`just_testing` where `NAME` REGEXP '(Test|Spider|Regex)'; bq. +-----------------+ bq. | name | bq. +-----------------+ bq. | TestSpiderRegex | bq. +-----------------+ bq. 1 row in set (0.000 sec)^ Now, creating the respective SPIDER schema - table: ~MariaDB [test_db]> create database spider_test_db; MariaDB [test_db]> CREATE TABLE `spider_test_db`.`just_testing` ( `name` varchar(16) NOT NULL ) ENGINE=SPIDER DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='wrapper "mysql", srv "dataNodeGalera", database "test_db", table "just_testing"'; MariaDB [spider_test_db]> select * from `spider_test_db`.`just_testing`; +-----------------+ | name | +-----------------+ | TestSpiderRegex | +-----------------+~ Selecting with REGEXP fails: ~MariaDB [spider_test_db]> select `name` from `spider_test_db`.`just_testing` where `NAME` REGEXP '(Test|Spider|Regex)'; ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'regexp(t0.`name` , '(Test|Spider|Regex)'))' at line 1~ Issue persists with all regular expressions I could try, in all queries I could try. Thank you |
Hello,
It appears as if I cannot use regular expressions against SPIDER engine tables. I have searched the documentation for related configuration parameters, but I was unable to find any. A Simple example can be seen below: {quote}bq. ^MariaDB [test_db]> CREATE TABLE `test_db`.`just_testing` ( bq. `name` varchar(16) not null bq. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;~ bq. bq. ~MariaDB [test_db]> insert into `test_db`.`just_testing`(name) values ('TestSpiderRegex'); bq. MariaDB [test_db]> select `name` from `test_db`.`just_testing` where `NAME` REGEXP '(Test|Spider|Regex)'; bq. +-----------------+ bq. | name | bq. +-----------------+ bq. | TestSpiderRegex | bq. +-----------------+ bq. 1 row in set (0.000 sec)^{quote} Now, creating the respective SPIDER schema - table: ~MariaDB [test_db]> create database spider_test_db; MariaDB [test_db]> CREATE TABLE `spider_test_db`.`just_testing` ( `name` varchar(16) NOT NULL ) ENGINE=SPIDER DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='wrapper "mysql", srv "dataNodeGalera", database "test_db", table "just_testing"'; MariaDB [spider_test_db]> select * from `spider_test_db`.`just_testing`; +-----------------+ | name | +-----------------+ | TestSpiderRegex | +-----------------+~ Selecting with REGEXP fails: ~MariaDB [spider_test_db]> select `name` from `spider_test_db`.`just_testing` where `NAME` REGEXP '(Test|Spider|Regex)'; ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'regexp(t0.`name` , '(Test|Spider|Regex)'))' at line 1~ Issue persists with all regular expressions I could try, in all queries I could try. Thank you |
Description |
Hello,
It appears as if I cannot use regular expressions against SPIDER engine tables. I have searched the documentation for related configuration parameters, but I was unable to find any. A Simple example can be seen below: {quote}bq. ^MariaDB [test_db]> CREATE TABLE `test_db`.`just_testing` ( bq. `name` varchar(16) not null bq. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;~ bq. bq. ~MariaDB [test_db]> insert into `test_db`.`just_testing`(name) values ('TestSpiderRegex'); bq. MariaDB [test_db]> select `name` from `test_db`.`just_testing` where `NAME` REGEXP '(Test|Spider|Regex)'; bq. +-----------------+ bq. | name | bq. +-----------------+ bq. | TestSpiderRegex | bq. +-----------------+ bq. 1 row in set (0.000 sec)^{quote} Now, creating the respective SPIDER schema - table: ~MariaDB [test_db]> create database spider_test_db; MariaDB [test_db]> CREATE TABLE `spider_test_db`.`just_testing` ( `name` varchar(16) NOT NULL ) ENGINE=SPIDER DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='wrapper "mysql", srv "dataNodeGalera", database "test_db", table "just_testing"'; MariaDB [spider_test_db]> select * from `spider_test_db`.`just_testing`; +-----------------+ | name | +-----------------+ | TestSpiderRegex | +-----------------+~ Selecting with REGEXP fails: ~MariaDB [spider_test_db]> select `name` from `spider_test_db`.`just_testing` where `NAME` REGEXP '(Test|Spider|Regex)'; ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'regexp(t0.`name` , '(Test|Spider|Regex)'))' at line 1~ Issue persists with all regular expressions I could try, in all queries I could try. Thank you |
Hello,
It appears as if I cannot use regular expressions against SPIDER engine tables. I have searched the documentation for related configuration parameters, but I was unable to find any. A Simple example can be seen below: MariaDB [test_db]> CREATE TABLE `test_db`.`just_testing` ( `name` varchar(16) not null ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; MariaDB [test_db]> insert into `test_db`.`just_testing`(name) values ('TestSpiderRegex'); MariaDB [test_db]> select `name` from `test_db`.`just_testing` where `NAME` REGEXP '(Test|Spider|Regex)'; +-----------------+ | name | +-----------------+ | TestSpiderRegex | +-----------------+ 1 row in set (0.000 sec) Now, creating the respective SPIDER schema - table: ~MariaDB [test_db]> create database spider_test_db; MariaDB [test_db]> CREATE TABLE `spider_test_db`.`just_testing` ( `name` varchar(16) NOT NULL ) ENGINE=SPIDER DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='wrapper "mysql", srv "dataNodeGalera", database "test_db", table "just_testing"'; MariaDB [spider_test_db]> select * from `spider_test_db`.`just_testing`; +-----------------+ | name | +-----------------+ | TestSpiderRegex | +-----------------+~ Selecting with REGEXP fails: ~MariaDB [spider_test_db]> select `name` from `spider_test_db`.`just_testing` where `NAME` REGEXP '(Test|Spider|Regex)'; ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'regexp(t0.`name` , '(Test|Spider|Regex)'))' at line 1~ Issue persists with all regular expressions I could try, in all queries I could try. Thank you |
Description |
Hello,
It appears as if I cannot use regular expressions against SPIDER engine tables. I have searched the documentation for related configuration parameters, but I was unable to find any. A Simple example can be seen below: MariaDB [test_db]> CREATE TABLE `test_db`.`just_testing` ( `name` varchar(16) not null ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; MariaDB [test_db]> insert into `test_db`.`just_testing`(name) values ('TestSpiderRegex'); MariaDB [test_db]> select `name` from `test_db`.`just_testing` where `NAME` REGEXP '(Test|Spider|Regex)'; +-----------------+ | name | +-----------------+ | TestSpiderRegex | +-----------------+ 1 row in set (0.000 sec) Now, creating the respective SPIDER schema - table: ~MariaDB [test_db]> create database spider_test_db; MariaDB [test_db]> CREATE TABLE `spider_test_db`.`just_testing` ( `name` varchar(16) NOT NULL ) ENGINE=SPIDER DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='wrapper "mysql", srv "dataNodeGalera", database "test_db", table "just_testing"'; MariaDB [spider_test_db]> select * from `spider_test_db`.`just_testing`; +-----------------+ | name | +-----------------+ | TestSpiderRegex | +-----------------+~ Selecting with REGEXP fails: ~MariaDB [spider_test_db]> select `name` from `spider_test_db`.`just_testing` where `NAME` REGEXP '(Test|Spider|Regex)'; ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'regexp(t0.`name` , '(Test|Spider|Regex)'))' at line 1~ Issue persists with all regular expressions I could try, in all queries I could try. Thank you |
Hello,
It appears as if I cannot use regular expressions against SPIDER engine tables. I have searched the documentation for related configuration parameters, but I was unable to find any. {noformat} A Simple example can be seen below: {noformat} {code:sql} MariaDB [test_db]> CREATE TABLE `test_db`.`just_testing` ( `name` varchar(16) not null ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; MariaDB [test_db]> insert into `test_db`.`just_testing`(name) values ('TestSpiderRegex'); MariaDB [test_db]> select `name` from `test_db`.`just_testing` where `NAME` REGEXP '(Test|Spider|Regex)'; +-----------------+ | name | +-----------------+ | TestSpiderRegex | +-----------------+ 1 row in set (0.000 sec) {code} {noformat} Now, creating the respective SPIDER schema - table: {noformat} {code:sql} ~MariaDB [test_db]> create database spider_test_db; MariaDB [test_db]> CREATE TABLE `spider_test_db`.`just_testing` ( `name` varchar(16) NOT NULL ) ENGINE=SPIDER DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='wrapper "mysql", srv "dataNodeGalera", database "test_db", table "just_testing"'; MariaDB [spider_test_db]> select * from `spider_test_db`.`just_testing`; +-----------------+ | name | +-----------------+ | TestSpiderRegex | +-----------------+~ {code} {noformat} Selecting with REGEXP fails: {noformat} {code:sql} ~MariaDB [spider_test_db]> select `name` from `spider_test_db`.`just_testing` where `NAME` REGEXP '(Test|Spider|Regex)'; ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'regexp(t0.`name` , '(Test|Spider|Regex)'))' at line 1~ {code:sql} Issue persists with all regular expressions I could try, in all queries I could try. Thank you |
Description |
Hello,
It appears as if I cannot use regular expressions against SPIDER engine tables. I have searched the documentation for related configuration parameters, but I was unable to find any. {noformat} A Simple example can be seen below: {noformat} {code:sql} MariaDB [test_db]> CREATE TABLE `test_db`.`just_testing` ( `name` varchar(16) not null ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; MariaDB [test_db]> insert into `test_db`.`just_testing`(name) values ('TestSpiderRegex'); MariaDB [test_db]> select `name` from `test_db`.`just_testing` where `NAME` REGEXP '(Test|Spider|Regex)'; +-----------------+ | name | +-----------------+ | TestSpiderRegex | +-----------------+ 1 row in set (0.000 sec) {code} {noformat} Now, creating the respective SPIDER schema - table: {noformat} {code:sql} ~MariaDB [test_db]> create database spider_test_db; MariaDB [test_db]> CREATE TABLE `spider_test_db`.`just_testing` ( `name` varchar(16) NOT NULL ) ENGINE=SPIDER DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='wrapper "mysql", srv "dataNodeGalera", database "test_db", table "just_testing"'; MariaDB [spider_test_db]> select * from `spider_test_db`.`just_testing`; +-----------------+ | name | +-----------------+ | TestSpiderRegex | +-----------------+~ {code} {noformat} Selecting with REGEXP fails: {noformat} {code:sql} ~MariaDB [spider_test_db]> select `name` from `spider_test_db`.`just_testing` where `NAME` REGEXP '(Test|Spider|Regex)'; ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'regexp(t0.`name` , '(Test|Spider|Regex)'))' at line 1~ {code:sql} Issue persists with all regular expressions I could try, in all queries I could try. Thank you |
Hello,
It appears as if I cannot use regular expressions against SPIDER engine tables. I have searched the documentation for related configuration parameters, but I was unable to find any. A Simple example can be seen below: {code:sql} MariaDB [test_db]> CREATE TABLE `test_db`.`just_testing` ( `name` varchar(16) not null ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; MariaDB [test_db]> insert into `test_db`.`just_testing`(name) values ('TestSpiderRegex'); MariaDB [test_db]> select `name` from `test_db`.`just_testing` where `NAME` REGEXP '(Test|Spider|Regex)'; +-----------------+ | name | +-----------------+ | TestSpiderRegex | +-----------------+ 1 row in set (0.000 sec) {code} Now, creating the respective SPIDER schema - table: {code:sql} ~MariaDB [test_db]> create database spider_test_db; MariaDB [test_db]> CREATE TABLE `spider_test_db`.`just_testing` ( `name` varchar(16) NOT NULL ) ENGINE=SPIDER DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='wrapper "mysql", srv "dataNodeGalera", database "test_db", table "just_testing"'; MariaDB [spider_test_db]> select * from `spider_test_db`.`just_testing`; +-----------------+ | name | +-----------------+ | TestSpiderRegex | +-----------------+~ {code} {noformat} Selecting with REGEXP fails: {noformat} {code:sql} ~MariaDB [spider_test_db]> select `name` from `spider_test_db`.`just_testing` where `NAME` REGEXP '(Test|Spider|Regex)'; ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'regexp(t0.`name` , '(Test|Spider|Regex)'))' at line 1~ {code:sql} Issue persists with all regular expressions I could try, in all queries I could try. Thank you |
Description |
Hello,
It appears as if I cannot use regular expressions against SPIDER engine tables. I have searched the documentation for related configuration parameters, but I was unable to find any. A Simple example can be seen below: {code:sql} MariaDB [test_db]> CREATE TABLE `test_db`.`just_testing` ( `name` varchar(16) not null ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; MariaDB [test_db]> insert into `test_db`.`just_testing`(name) values ('TestSpiderRegex'); MariaDB [test_db]> select `name` from `test_db`.`just_testing` where `NAME` REGEXP '(Test|Spider|Regex)'; +-----------------+ | name | +-----------------+ | TestSpiderRegex | +-----------------+ 1 row in set (0.000 sec) {code} Now, creating the respective SPIDER schema - table: {code:sql} ~MariaDB [test_db]> create database spider_test_db; MariaDB [test_db]> CREATE TABLE `spider_test_db`.`just_testing` ( `name` varchar(16) NOT NULL ) ENGINE=SPIDER DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='wrapper "mysql", srv "dataNodeGalera", database "test_db", table "just_testing"'; MariaDB [spider_test_db]> select * from `spider_test_db`.`just_testing`; +-----------------+ | name | +-----------------+ | TestSpiderRegex | +-----------------+~ {code} {noformat} Selecting with REGEXP fails: {noformat} {code:sql} ~MariaDB [spider_test_db]> select `name` from `spider_test_db`.`just_testing` where `NAME` REGEXP '(Test|Spider|Regex)'; ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'regexp(t0.`name` , '(Test|Spider|Regex)'))' at line 1~ {code:sql} Issue persists with all regular expressions I could try, in all queries I could try. Thank you |
Hello,
It appears as if I cannot use regular expressions against SPIDER engine tables. I have searched the documentation for related configuration parameters, but I was unable to find any. A Simple example can be seen below: {code:sql} MariaDB [test_db]> CREATE TABLE `test_db`.`just_testing` ( `name` varchar(16) not null ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; MariaDB [test_db]> insert into `test_db`.`just_testing`(name) values ('TestSpiderRegex'); MariaDB [test_db]> select `name` from `test_db`.`just_testing` where `NAME` REGEXP '(Test|Spider|Regex)'; +-----------------+ | name | +-----------------+ | TestSpiderRegex | +-----------------+ 1 row in set (0.000 sec) {code} Now, creating the respective SPIDER schema - table: {code:sql} ~MariaDB [test_db]> create database spider_test_db; MariaDB [test_db]> CREATE TABLE `spider_test_db`.`just_testing` ( `name` varchar(16) NOT NULL ) ENGINE=SPIDER DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='wrapper "mysql", srv "dataNodeGalera", database "test_db", table "just_testing"'; MariaDB [spider_test_db]> select * from `spider_test_db`.`just_testing`; +-----------------+ | name | +-----------------+ | TestSpiderRegex | +-----------------+~ {code} Selecting with REGEXP fails: {code:sql} ~MariaDB [spider_test_db]> select `name` from `spider_test_db`.`just_testing` where `NAME` REGEXP '(Test|Spider|Regex)'; ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'regexp(t0.`name` , '(Test|Spider|Regex)'))' at line 1~ {code:sql} Issue persists with all regular expressions I could try, in all queries I could try. Thank you |
Description |
Hello,
It appears as if I cannot use regular expressions against SPIDER engine tables. I have searched the documentation for related configuration parameters, but I was unable to find any. A Simple example can be seen below: {code:sql} MariaDB [test_db]> CREATE TABLE `test_db`.`just_testing` ( `name` varchar(16) not null ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; MariaDB [test_db]> insert into `test_db`.`just_testing`(name) values ('TestSpiderRegex'); MariaDB [test_db]> select `name` from `test_db`.`just_testing` where `NAME` REGEXP '(Test|Spider|Regex)'; +-----------------+ | name | +-----------------+ | TestSpiderRegex | +-----------------+ 1 row in set (0.000 sec) {code} Now, creating the respective SPIDER schema - table: {code:sql} ~MariaDB [test_db]> create database spider_test_db; MariaDB [test_db]> CREATE TABLE `spider_test_db`.`just_testing` ( `name` varchar(16) NOT NULL ) ENGINE=SPIDER DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='wrapper "mysql", srv "dataNodeGalera", database "test_db", table "just_testing"'; MariaDB [spider_test_db]> select * from `spider_test_db`.`just_testing`; +-----------------+ | name | +-----------------+ | TestSpiderRegex | +-----------------+~ {code} Selecting with REGEXP fails: {code:sql} ~MariaDB [spider_test_db]> select `name` from `spider_test_db`.`just_testing` where `NAME` REGEXP '(Test|Spider|Regex)'; ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'regexp(t0.`name` , '(Test|Spider|Regex)'))' at line 1~ {code:sql} Issue persists with all regular expressions I could try, in all queries I could try. Thank you |
Hello,
It appears as if I cannot use regular expressions against SPIDER engine tables. I have searched the documentation for related configuration parameters, but I was unable to find any. A Simple example can be seen below: {code:sql} MariaDB [test_db]> CREATE TABLE `test_db`.`just_testing` ( `name` varchar(16) not null ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; MariaDB [test_db]> insert into `test_db`.`just_testing`(name) values ('TestSpiderRegex'); MariaDB [test_db]> select `name` from `test_db`.`just_testing` where `NAME` REGEXP '(Test|Spider|Regex)'; +-----------------+ | name | +-----------------+ | TestSpiderRegex | +-----------------+ 1 row in set (0.000 sec) {code} Now, creating the respective SPIDER schema - table: {code:sql} ~MariaDB [test_db]> create database spider_test_db; MariaDB [test_db]> CREATE TABLE `spider_test_db`.`just_testing` ( `name` varchar(16) NOT NULL ) ENGINE=SPIDER DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='wrapper "mysql", srv "dataNodeGalera", database "test_db", table "just_testing"'; MariaDB [spider_test_db]> select * from `spider_test_db`.`just_testing`; +-----------------+ | name | +-----------------+ | TestSpiderRegex | +-----------------+~ {code} Selecting with REGEXP fails: {code:sql} ~MariaDB [spider_test_db]> select `name` from `spider_test_db`.`just_testing` where `NAME` REGEXP '(Test|Spider|Regex)'; ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'regexp(t0.`name` , '(Test|Spider|Regex)'))' at line 1~ {code} Issue persists with all regular expressions I could try, in all queries I could try. Thank you |
Description |
Hello,
It appears as if I cannot use regular expressions against SPIDER engine tables. I have searched the documentation for related configuration parameters, but I was unable to find any. A Simple example can be seen below: {code:sql} MariaDB [test_db]> CREATE TABLE `test_db`.`just_testing` ( `name` varchar(16) not null ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; MariaDB [test_db]> insert into `test_db`.`just_testing`(name) values ('TestSpiderRegex'); MariaDB [test_db]> select `name` from `test_db`.`just_testing` where `NAME` REGEXP '(Test|Spider|Regex)'; +-----------------+ | name | +-----------------+ | TestSpiderRegex | +-----------------+ 1 row in set (0.000 sec) {code} Now, creating the respective SPIDER schema - table: {code:sql} ~MariaDB [test_db]> create database spider_test_db; MariaDB [test_db]> CREATE TABLE `spider_test_db`.`just_testing` ( `name` varchar(16) NOT NULL ) ENGINE=SPIDER DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='wrapper "mysql", srv "dataNodeGalera", database "test_db", table "just_testing"'; MariaDB [spider_test_db]> select * from `spider_test_db`.`just_testing`; +-----------------+ | name | +-----------------+ | TestSpiderRegex | +-----------------+~ {code} Selecting with REGEXP fails: {code:sql} ~MariaDB [spider_test_db]> select `name` from `spider_test_db`.`just_testing` where `NAME` REGEXP '(Test|Spider|Regex)'; ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'regexp(t0.`name` , '(Test|Spider|Regex)'))' at line 1~ {code} Issue persists with all regular expressions I could try, in all queries I could try. Thank you |
Hello,
It appears as if I cannot use regular expressions against SPIDER engine tables. I have searched the documentation for related configuration parameters, but I was unable to find any. A Simple example can be seen below: {code:sql} MariaDB [test_db]> CREATE TABLE `test_db`.`just_testing` ( `name` varchar(16) not null ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; MariaDB [test_db]> insert into `test_db`.`just_testing`(name) values ('TestSpiderRegex'); MariaDB [test_db]> select `name` from `test_db`.`just_testing` where `NAME` REGEXP '(Test|Spider|Regex)'; +-----------------+ | name | +-----------------+ | TestSpiderRegex | +-----------------+ 1 row in set (0.000 sec) {code} Now, creating the respective SPIDER schema - table: {code:sql} ~MariaDB [test_db]> create database spider_test_db; MariaDB [test_db]> CREATE TABLE `spider_test_db`.`just_testing` ( `name` varchar(16) NOT NULL ) ENGINE=SPIDER DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci COMMENT='wrapper "mysql", srv "dataNode", database "test_db", table "just_testing"'; MariaDB [spider_test_db]> select * from `spider_test_db`.`just_testing`; +-----------------+ | name | +-----------------+ | TestSpiderRegex | +-----------------+~ {code} Selecting with REGEXP fails: {code:sql} ~MariaDB [spider_test_db]> select `name` from `spider_test_db`.`just_testing` where `NAME` REGEXP '(Test|Spider|Regex)'; ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'regexp(t0.`name` , '(Test|Spider|Regex)'))' at line 1~ {code} Issue persists with all regular expressions I could try, in all queries I could try. Thank you |
Labels | spider |
Fix Version/s | 10.11 [ 27614 ] |
Status | Open [ 1 ] | Confirmed [ 10101 ] |
Affects Version/s | 10.4 [ 22408 ] |
Assignee | Yuchen Pei [ JIRAUSER52627 ] | Alexey Botchkov [ holyfoot ] |
Status | Confirmed [ 10101 ] | In Review [ 10002 ] |
Labels | spider | spider spider-gbh |
Priority | Major [ 3 ] | Critical [ 2 ] |
Assignee | Alexey Botchkov [ holyfoot ] | Yuchen Pei [ JIRAUSER52627 ] |
Status | In Review [ 10002 ] | Stalled [ 10000 ] |
Fix Version/s | 10.4.33 [ 29516 ] | |
Fix Version/s | 10.11 [ 27614 ] | |
Resolution | Fixed [ 1 ] | |
Status | Stalled [ 10000 ] | Closed [ 6 ] |
Fix Version/s | 10.5.24 [ 29517 ] | |
Fix Version/s | 10.6.17 [ 29518 ] | |
Fix Version/s | 10.11.7 [ 29519 ] | |
Fix Version/s | 11.0.5 [ 29520 ] | |
Fix Version/s | 11.1.4 [ 29024 ] | |
Fix Version/s | 11.2.3 [ 29521 ] |
Thanks for the report ibotsaris, the following patch should fix it.
Hi holyfoot, ptal thanks:
upstream/bb-10.11-mdev-32986 1172790235505e04e7efe4ca4f079814bc771964
MDEV-32986 Make regexp operator work in spider group by handler
In spider_db_mbase_util::print_item_func(), if the sql item_func has
an UNKNOWN_FUNC type, by default the spider group by handler (gbh)
transform infix to prefix. But regexp should remain infix, so we add
an if condition to account for this.
For 10.4, which is an identical patch, see
f6145762b1d upstream/bb-10.4-mdev-32986 MDEV-32986 Make regexp operator work in spider group by handler