[backend] column name same with reserved keyword of mysql 8.0
See original GitHub issueEnvironment
- How did you deploy Kubeflow Pipelines (KFP)?
- create table in mysql and deploy the KFP services
- KFP version:
- 1.5
- KFP SDK version:
Steps to reproduce
When creating table in mysql 8.0, it would report fail because there are columns name Description
in tables experiments
, jobs
, pipelines
, run_details
, which is the reserved keyword of mysql
Expected result
Creating tables without error.
Shall we use Descriptions
as the columns’ name?
Materials and Reference
Impacted by this bug? Give it a 👍. We prioritise the issues with the most 👍.
cc @Jeffwan
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
9.3 Keywords and Reserved Words - MySQL :: Developer Zone
The following list shows the keywords and reserved words in MySQL 8.0, ... reserved words in the list are forbidden by standard SQL...
Read more >Syntax error due to using a reserved word as ... - Stack Overflow
The simplest solution is simply to avoid using reserved words as identifiers. You can probably find another reasonable name for your column that ......
Read more >How to Use Reserved Words as Column Names in SQL?
The trick here is to type the column names inside the square brackets '[]' so that they are not read as a Reserved...
Read more >Add MySQL Reserved Word 'lead' · Issue #7167 - GitHub
Using MySQL 8.0.27 with a database table called lead . Turns out this is a new reserved word in MariaDB. I am using...
Read more >How to escape SQL reserved keywords with JPA and Hibernate
Because the TABLE keyword is reserved, we need to escape it. More, we need to escape the catalog , schema , and desc...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I have tried it out with MySQL 8 and got it working, some very minor things needed to change. I can make a PR with it, could you point me to how we build the images for gcr @Bobgy?
As @Bobgy points out
description
is anon-reserved
keyword:and
Source: https://dev.mysql.com/doc/refman/8.0/en/keywords.html#keywords-new-in-current-series. Maybe you could try to check out the branch @algs and see if it work for you? Let me know if you have any questions so I can help out.
FWIW, I have successfully deployed KFP 1.5.0 on GKE with MySQL 8 running in CloudSQL.
I haven’t done much testing yet but was able to successfully run some pipelines and store the associated data.