Skip to content

Commit

Permalink
[fix][dingo-store-proxy] Resolve IndexMapper.toIndex mapping errors
Browse files Browse the repository at this point in the history
  • Loading branch information
guojn1 authored and githubgxll committed Nov 20, 2024
1 parent 2e59936 commit b195bf3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 14 deletions.
6 changes: 1 addition & 5 deletions dingo-calcite/src/main/codegen/includes/AlterTable.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -184,11 +184,7 @@ SqlAlterTable addUniqueIndex(Span s, String scope, SqlIdentifier id): {
} {
<UNIQUE><INDEX> { s.add(this); }
{ index = getNextToken().image; }
(
<VECTOR> { indexType = "vector"; } columnList = ParenthesizedSimpleIdentifierList()
|
[<SCALAR>] columnList = ParenthesizedSimpleIdentifierList()
)
[<SCALAR>] columnList = ParenthesizedSimpleIdentifierList()
(
<WITH> withColumnList = ParenthesizedSimpleIdentifierList()
|
Expand Down
8 changes: 0 additions & 8 deletions dingo-meta-api/src/main/java/io/dingodb/meta/MetaService.java
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,6 @@ default long createTables(
return 0;
}

default void rollbackCreateTable(
@NonNull TableDefinition tableDefinition,
@NonNull List<IndexDefinition> indexTableDefinitions
) {

}

default void rollbackCreateTable(
long schemaId,
@NonNull TableDefinition tableDefinition,
Expand All @@ -151,7 +144,6 @@ default void updateTable(CommonId tableId, @NonNull Table table) {

long truncateTable(@NonNull String tableName, long tableEntityId);

// boolean dropTables(@NonNull Collection<CommonId> tableIds);

/**
* Get table by table name.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,11 @@ default Properties toMap(Object target) {
if (target == null) {
return new Properties();
}
return JSON.convertValue(target, Properties.class);
try {
return JSON.convertValue(target, Properties.class);
} catch (Exception e) {
return new Properties();
}
}

default void resetIndexParameter(TableDefinition indexDefinition, io.dingodb.common.table.IndexDefinition indexDef) {
Expand Down

0 comments on commit b195bf3

Please sign in to comment.