question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[backend] column name same with reserved keyword of mysql 8.0

See original GitHub issue

Environment

  • 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:open
  • Created 2 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
NikeNanocommented, Jun 28, 2021

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 a non-reserved keyword:

DESCRIPTION; added in 8.0.4 (nonreserved)

and

Nonreserved keywords are permitted as identifiers without quoting. Reserved words are permitted as identifiers if you quote them as ...

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.

1reaction
sidpalascommented, Jul 6, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found