This is an automated email from the ASF dual-hosted git repository.

jshao pushed a commit to branch branch-1.0
in repository https://gitbox.apache.org/repos/asf/gravitino.git


The following commit(s) were added to refs/heads/branch-1.0 by this push:
     new fa78852156 [#8664] improvement(core): add missing space between the 
table name and column list in insertModelMetaOnDuplicateKeyUpdate query (#8688)
fa78852156 is described below

commit fa78852156ed99ea7d3cd526a0a10ba832c80347
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Thu Sep 25 19:11:38 2025 +0800

    [#8664] improvement(core): add missing space between the table name and 
column list in insertModelMetaOnDuplicateKeyUpdate query (#8688)
    
    ### What changes were proposed in this pull request?
    
    Fixed a missing space in the `insertModelMetaOnDuplicateKeyUpdate` query
    where the column list directly followed `TABLE_NAME` without whitespace.
    
    ### Why are the changes needed?
    
    Fix: #8664
    
    ### Does this PR introduce _any_ user-facing change?
    
    No user-facing changes.
    
    ### How was this patch tested?
    
    Executed existing unit tests
    
    Co-authored-by: keepConcentration <[email protected]>
---
 .../mapper/provider/postgresql/ModelMetaPostgreSQLProvider.java         | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/core/src/main/java/org/apache/gravitino/storage/relational/mapper/provider/postgresql/ModelMetaPostgreSQLProvider.java
 
b/core/src/main/java/org/apache/gravitino/storage/relational/mapper/provider/postgresql/ModelMetaPostgreSQLProvider.java
index 6ebfc639ad..0bfd0363f4 100644
--- 
a/core/src/main/java/org/apache/gravitino/storage/relational/mapper/provider/postgresql/ModelMetaPostgreSQLProvider.java
+++ 
b/core/src/main/java/org/apache/gravitino/storage/relational/mapper/provider/postgresql/ModelMetaPostgreSQLProvider.java
@@ -29,7 +29,7 @@ public class ModelMetaPostgreSQLProvider extends 
ModelMetaBaseSQLProvider {
   public String insertModelMetaOnDuplicateKeyUpdate(@Param("modelMeta") 
ModelPO modelPO) {
     return "INSERT INTO "
         + ModelMetaMapper.TABLE_NAME
-        + "(model_id, model_name, metalake_id, catalog_id, schema_id,"
+        + " (model_id, model_name, metalake_id, catalog_id, schema_id,"
         + " model_comment, model_properties, model_latest_version, audit_info, 
deleted_at)"
         + " VALUES (#{modelMeta.modelId}, #{modelMeta.modelName}, 
#{modelMeta.metalakeId},"
         + " #{modelMeta.catalogId}, #{modelMeta.schemaId}, 
#{modelMeta.modelComment},"

Reply via email to