Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(jans-linux-setup): MariaDB json index creation #6891

Closed
devrimyatar opened this issue Dec 1, 2023 · 2 comments
Closed

fix(jans-linux-setup): MariaDB json index creation #6891

devrimyatar opened this issue Dec 1, 2023 · 2 comments
Assignees
Labels
comp-jans-linux-setup Component affected by issue or PR kind-bug Issue or PR is a bug in existing functionality
Milestone

Comments

@devrimyatar
Copy link
Contributor

Consequence of GluuFederation/community-edition-setup#1020

18:15:19 12/01/23 ERROR executing query ('(pymysql.err.ProgrammingError) (1064, "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 \'(CAST(jansClntId->\'$.v\' AS CHAR(128) ARRAY)))\' at line 1")',)
18:15:19 12/01/23 Executing mysql Query: ALTER TABLE jansdb.jansClntAuthz ADD INDEX `jansClntId_json_2`((CAST(jansClntId->'$.v[0]' AS CHAR(128))));
18:15:19 12/01/23 ERROR executing query ('(pymysql.err.ProgrammingError) (1064, "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 \'(CAST(jansClntId->\'$.v[0]\' AS CHAR(128))))\' at line 1")',)
18:15:19 12/01/23 Executing mysql Query: ALTER TABLE jansdb.jansClntAuthz ADD INDEX `jansClntId_json_3`((CAST(jansClntId->'$.v[1]' AS CHAR(128))));
18:15:19 12/01/23 ERROR executing query ('(pymysql.err.ProgrammingError) (1064, "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 \'(CAST(jansClntId->\'$.v[1]\' AS CHAR(128))))\' at line 1")',)
18:15:19 12/01/23 Executing mysql Query: ALTER TABLE jansdb.jansClntAuthz ADD INDEX `jansClntId_json_4`((CAST(jansClntId->'$.v[2]' AS CHAR(128))));
18:15:19 12/01/23 ERROR executing query ('(pymysql.err.ProgrammingError) (1064, "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 \'(CAST(jansClntId->\'$.v[2]\' AS CHAR(128))))\' at line 1")',)
@devrimyatar devrimyatar added kind-bug Issue or PR is a bug in existing functionality comp-jans-linux-setup Component affected by issue or PR labels Dec 1, 2023
@devrimyatar devrimyatar self-assigned this Dec 1, 2023
@moabu moabu added this to the 1.0.21 milestone Dec 6, 2023
@moabu moabu modified the milestones: 1.0.21, 1.0.22 Dec 14, 2023
@yurem
Copy link
Contributor

yurem commented Dec 28, 2023

According to my research I think Maria DB still no support JSON indexes. There are few workarounds like virtual columns, full text search. But these are not real working solutions for us. We need to turn off indexes creation for JSON columns if DB is MariaDB. Instead of this we can use child tables.

@devrimyatar
Copy link
Contributor Author

MairaDB support removed: #7218

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp-jans-linux-setup Component affected by issue or PR kind-bug Issue or PR is a bug in existing functionality
Projects
None yet
Development

No branches or pull requests

3 participants