提交 979b2018 编写于 作者: X Xiaoyu Wang

feat: the query uses the 'cachelast' option to decide whether to optimize the last_row function

上级 9522288f
...@@ -1773,6 +1773,10 @@ static int32_t setTableIndex(STranslateContext* pCxt, SName* pName, SRealTableNo ...@@ -1773,6 +1773,10 @@ static int32_t setTableIndex(STranslateContext* pCxt, SName* pName, SRealTableNo
} }
static int32_t setTableCacheLastMode(STranslateContext* pCxt, SName* pName, SRealTableNode* pRealTable) { static int32_t setTableCacheLastMode(STranslateContext* pCxt, SName* pName, SRealTableNode* pRealTable) {
if (TSDB_SYSTEM_TABLE == pRealTable->pMeta->tableType) {
return TSDB_CODE_SUCCESS;
}
SDbCfgInfo dbCfg = {0}; SDbCfgInfo dbCfg = {0};
int32_t code = getDBCfg(pCxt, pRealTable->table.dbName, &dbCfg); int32_t code = getDBCfg(pCxt, pRealTable->table.dbName, &dbCfg);
if (TSDB_CODE_SUCCESS == code) { if (TSDB_CODE_SUCCESS == code) {
......
...@@ -234,6 +234,8 @@ void generateDnodes(MockCatalogService* mcs) { ...@@ -234,6 +234,8 @@ void generateDnodes(MockCatalogService* mcs) {
} }
void generateDatabases(MockCatalogService* mcs) { void generateDatabases(MockCatalogService* mcs) {
mcs->createDatabase(TSDB_INFORMATION_SCHEMA_DB);
mcs->createDatabase(TSDB_PERFORMANCE_SCHEMA_DB);
mcs->createDatabase("test"); mcs->createDatabase("test");
mcs->createDatabase("rollup_db", true); mcs->createDatabase("rollup_db", true);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册