Skip to content

Commit 7c58377

Browse files
authored
Merge pull request #197 from ni-ze/supportRsqldb
support join sql in rsqldb
2 parents 0c85c97 + 7690a64 commit 7c58377

File tree

13 files changed

+294
-709
lines changed

13 files changed

+294
-709
lines changed

rocketmq-streams-commons/src/main/java/org/apache/rocketmq/streams/common/cache/FileBasedTable.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ public FileBasedTable(String fileName, int columnsCount, TableSchema schema) {
6060
String fieldName = tableSchema.getField(i);
6161
String fieldType = tableSchema.getFieldType(i);
6262
DataType dataType = DataTypeUtil.getDataType(fieldType);
63-
cloumnName2Index.put(fieldName, i);
64-
index2ColumnName.put(i, fieldName);
65-
cloumnName2DatatType.put(fieldName, dataType);
63+
column2Index.put(fieldName, i);
64+
index2Column.put(i, fieldName);
65+
column2DataType.put(fieldName, dataType);
6666
}
6767
}
6868

rocketmq-streams-commons/src/main/java/org/apache/rocketmq/streams/common/cache/MappedByteBufferTable.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -356,8 +356,8 @@ public static void writeFileMeta(MappedByteBufferTable table, File file) throws
356356
}
357357
lines.add(sb.toString());
358358
StringBuilder sb1 = new StringBuilder();
359-
Map<Integer, String> index2ColumnName = table.getIndex2ColumnName();
360-
Map<String, DataType> columnName2DataType = table.getCloumnName2DatatType();
359+
Map<Integer, String> index2ColumnName = table.getIndex2Column();
360+
Map<String, DataType> columnName2DataType = table.getColumn2DataType();
361361
int rowCount = index2ColumnName.size();
362362
for (int i = 0; i < rowCount; i++) {
363363
String columnName = index2ColumnName.get(i);
@@ -569,9 +569,9 @@ private void loadFromFile(MappedByteBufferTable table) throws IOException {
569569
table.setFileOffset(meta.totalByteSize);
570570
table.setColumnsCount(meta.columnsCount);
571571
table.setFileRowCount(meta.totalRowCount);
572-
table.setCloumnName2Index(meta.columnName2Index);
573-
table.setIndex2ColumnName(meta.index2ColumnName);
574-
table.setCloumnName2DatatType(meta.columns2DataType);
572+
table.setColumn2Index(meta.columnName2Index);
573+
table.setIndex2Column(meta.index2ColumnName);
574+
table.setColumn2DataType(meta.columns2DataType);
575575
for (int i = 0; i < meta.filePaths.length; i++) {
576576
String path = meta.filePaths[i];
577577
int limit = meta.limits[i];

0 commit comments

Comments
 (0)