kangpinghuang commented on a change in pull request #1917: Support specifying inverted index columns when creating table URL: https://github.com/apache/incubator-doris/pull/1917#discussion_r350603603
########## File path: fe/src/main/java/org/apache/doris/catalog/Catalog.java ########## @@ -3852,6 +3866,13 @@ public static void getDdlStmt(Table table, List<String> createTableStmt, List<St sb.append(colocateTable).append("\""); } + // 6. inverted index + Set<String> invertedIdxCols = olapTable.getInvertedIndexColumns(); + if (invertedIdxCols != null) { + sb.append(",\n \"").append(PropertyAnalyzer.PROPERTIES_INVERTED_INDEX_COLUMNS).append("\" = \""); + sb.append(Joiner.on(", ").join(invertedIdxCols)).append("\""); + } Review comment: add a UT to test this logic? ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org