Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: sevev <[email protected]>
  • Loading branch information
sevev committed Sep 6, 2024
1 parent 18e91d0 commit df0218e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ private TOlapTableSchemaParam createSchema(long dbId, Table table, TupleDescript
columnsDesc.add(tColumn);
}
TOlapTableColumnParam columnParam = new TOlapTableColumnParam(columnsDesc, columnSortKeyUids, 0);
TOlapTableIndexSchema indexSchema = new TOlapTableIndexSchema(0, columns, 0, null);
TOlapTableIndexSchema indexSchema = new TOlapTableIndexSchema(0, columns, 0);
indexSchema.setColumn_param(columnParam);
schemaParam.addToIndexes(indexSchema);
return schemaParam;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -384,9 +384,10 @@ public static TOlapTableSchemaParam createSchema(long dbId, OlapTable table, Tup
TOlapTableColumnParam columnParam = new TOlapTableColumnParam(columnsDesc, columnSortKeyUids,
indexMeta.getShortKeyColumnCount());
TOlapTableIndexSchema indexSchema = new TOlapTableIndexSchema(pair.getKey(), columns,
indexMeta.getSchemaHash(), columnToExprValue);
indexMeta.getSchemaHash());
indexSchema.setColumn_param(columnParam);
indexSchema.setSchema_id(indexMeta.getSchemaId());
indexSchema.setColumn_to_expr_value(columnToExprValue);
schemaParam.addToIndexes(indexSchema);
if (indexMeta.getWhereClause() != null) {
String dbName = MetaUtils.getDatabase(dbId).getFullName();
Expand Down
2 changes: 1 addition & 1 deletion gensrc/thrift/Descriptors.thrift
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ struct TOlapTableIndexSchema {
4: optional TOlapTableColumnParam column_param
5: optional Exprs.TExpr where_clause
6: optional i64 schema_id // schema id
7: map<string, string> column_to_expr_value
7: optional map<string, string> column_to_expr_value
}

struct TOlapTableSchemaParam {
Expand Down

0 comments on commit df0218e

Please sign in to comment.