You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gravitino.apache.org by "JandyTenedora (via GitHub)" <gi...@apache.org> on 2026/06/22 19:00:30 UTC
[PR] [#8384] Wrap column names with backticks in OceanBaseTableOperations [gravitino]
JandyTenedora opened a new pull request, #11768:
URL: https://github.com/apache/gravitino/pull/11768
### What changes were proposed in this pull request?
Wraps column names with backticks in `updateColumnPositionFieldDefinition`, `updateColumnDefaultValueFieldDefinition`, and `updateColumnTypeFieldDefinition` in `OceanBaseTableOperations.java`.
These three methods construct SQL without quoting column names, causing syntax errors when column names are reserved words or contain special characters. The rest of the file already uses backtick wrapping consistently.
### Why are the changes needed?
Fixes #8384. A previous PR (#8402) addressed this but was closed due to spotless formatting not being applied.
### Does this PR introduce _any_ user-facing change?
No. This is a bug fix for SQL generation — no API changes.
### How was this patch tested?
Ran `./gradlew :catalogs-contrib:catalog-jdbc-oceanbase:spotlessApply` to ensure formatting is correct.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#8384] Wrap column names with backticks in OceanBaseTableOperations [gravitino]
Posted by "JandyTenedora (via GitHub)" <gi...@apache.org>.
JandyTenedora closed pull request #11768: [#8384] Wrap column names with backticks in OceanBaseTableOperations
URL: https://github.com/apache/gravitino/pull/11768
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#8384] fix(catalog-oceanbase): Wrap column names with backticks [gravitino]
Posted by "yuqi1129 (via GitHub)" <gi...@apache.org>.
yuqi1129 commented on PR #11768:
URL: https://github.com/apache/gravitino/pull/11768#issuecomment-4777214882
I'm going to merge this, and thanks for your contribution. @JandyTenedora
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#8384] Wrap column names with backticks in OceanBaseTableOperations [gravitino]
Posted by "JandyTenedora (via GitHub)" <gi...@apache.org>.
JandyTenedora commented on PR #11768:
URL: https://github.com/apache/gravitino/pull/11768#issuecomment-4772169851
<img width="1234" height="520" alt="image" src="https://github.com/user-attachments/assets/1d39514c-37bf-44cb-9c52-d07e61a1f770" />
<img width="1088" height="453" alt="image" src="https://github.com/user-attachments/assets/c78d1ded-7ea7-4b99-b106-27fa9fce0629" />
Tests and spotlessApply formatter ran
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#8384] Wrap column names with backticks in OceanBaseTableOperations [gravitino]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #11768:
URL: https://github.com/apache/gravitino/pull/11768#issuecomment-4774969299
<!-- coverage-report -->
### Code Coverage Report
|Overall Project|67.14% **`+0.06%`**|:green_circle:|
|:-|:-|:-:|
|Files changed|80.73%|:green_circle:|
<br>
|Module|Coverage||
|:-|:-|:-:|
|aliyun|1.72%|:red_circle:|
|api|46.82%|:green_circle:|
|authorization-common|85.96%|:green_circle:|
|aws|3.66%|:red_circle:|
|azure|2.47%|:red_circle:|
|catalog-common|10.4%|:red_circle:|
|catalog-fileset|80.23%|:green_circle:|
|catalog-glue|66.91%|:green_circle:|
|catalog-hive|79.42%|:green_circle:|
|catalog-jdbc-clickhouse|80.02%|:green_circle:|
|catalog-jdbc-common|44.22%|:green_circle:|
|catalog-jdbc-doris|80.28%|:green_circle:|
|catalog-jdbc-hologres|54.03%|:green_circle:|
|catalog-jdbc-mysql|79.23%|:green_circle:|
|catalog-jdbc-oceanbase|78.6% **`+7.05%`**|:green_circle:|
|catalog-jdbc-postgresql|82.29%|:green_circle:|
|catalog-jdbc-starrocks|78.51%|:green_circle:|
|catalog-kafka|77.01%|:green_circle:|
|catalog-lakehouse-generic|58.53%|:green_circle:|
|catalog-lakehouse-hudi|79.1%|:green_circle:|
|catalog-lakehouse-iceberg|85.86%|:green_circle:|
|catalog-lakehouse-paimon|82.14%|:green_circle:|
|catalog-model|77.72%|:green_circle:|
|cli|44.51%|:green_circle:|
|client-java|78.01%|:green_circle:|
|common|50.17%|:green_circle:|
|core|82.58%|:green_circle:|
|filesystem-hadoop3|77.27%|:green_circle:|
|flink|0.0%|:red_circle:|
|flink-common|47.12%|:green_circle:|
|flink-runtime|0.0%|:red_circle:|
|gcp|14.12%|:red_circle:|
|hadoop-common|10.88%|:red_circle:|
|hive-metastore-common|53.77%|:green_circle:|
|iceberg-common|58.15%|:green_circle:|
|iceberg-rest-server|73.9%|:green_circle:|
|idp-basic|85.71%|:green_circle:|
|integration-test-common|0.0%|:red_circle:|
|jobs|66.17%|:green_circle:|
|lance-common|20.83%|:red_circle:|
|lance-rest-server|60.13%|:green_circle:|
|lineage|53.02%|:green_circle:|
|optimizer|82.95%|:green_circle:|
|optimizer-api|21.95%|:red_circle:|
|server|85.96%|:green_circle:|
|server-common|74.18%|:green_circle:|
|spark|28.57%|:red_circle:|
|spark-common|41.66%|:green_circle:|
|trino-connector|40.25%|:green_circle:|
<details>
<summary>Files</summary>
|Module|File|Coverage||
|:-|:-|:-|:-:|
|catalog-jdbc-oceanbase|[OceanBaseTableOperations.java](https://github.com/JandyTenedora/gravitino/blob/f8f79147efd70784fe524b6115c29b5ffc40622d/catalogs-contrib/catalog-jdbc-oceanbase/src/main/java/org/apache/gravitino/catalog/oceanbase/operation/OceanBaseTableOperations.java)|83.56%|:green_circle:|
||[OceanBaseCatalog.java](https://github.com/JandyTenedora/gravitino/blob/f8f79147efd70784fe524b6115c29b5ffc40622d/catalogs-contrib/catalog-jdbc-oceanbase/src/main/java/org/apache/gravitino/catalog/oceanbase/OceanBaseCatalog.java)|0.0%|:red_circle:|
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#8384] Wrap column names with backticks in OceanBaseTableOperations [gravitino]
Posted by "yuqi1129 (via GitHub)" <gi...@apache.org>.
yuqi1129 commented on PR #11768:
URL: https://github.com/apache/gravitino/pull/11768#issuecomment-4774587459
@JandyTenedora, please change the PR title and description as other PRs do.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#8384] fix(catalog-oceanbase): Wrap column names with backticks [gravitino]
Posted by "JandyTenedora (via GitHub)" <gi...@apache.org>.
JandyTenedora commented on PR #11768:
URL: https://github.com/apache/gravitino/pull/11768#issuecomment-4776931697
Hi @yuqi1129 thanks for the feedback. Have updated accordingly
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#8384] fix(catalog-oceanbase): Wrap column names with backticks [gravitino]
Posted by "yuqi1129 (via GitHub)" <gi...@apache.org>.
yuqi1129 merged PR #11768:
URL: https://github.com/apache/gravitino/pull/11768
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org