提交 61cd3ff9 编写于 作者: H Haojun Liao

[td-225]refactor

上级 d1d6b192
...@@ -240,6 +240,7 @@ typedef struct SQuery { ...@@ -240,6 +240,7 @@ typedef struct SQuery {
typedef struct SQueryRuntimeEnv { typedef struct SQueryRuntimeEnv {
jmp_buf env; jmp_buf env;
SQuery* pQuery; SQuery* pQuery;
void* qinfo;
SQLFunctionCtx* pCtx; SQLFunctionCtx* pCtx;
int32_t numOfRowsPerPage; int32_t numOfRowsPerPage;
...@@ -267,14 +268,18 @@ typedef struct SQueryRuntimeEnv { ...@@ -267,14 +268,18 @@ typedef struct SQueryRuntimeEnv {
SArithmeticSupport *sasArray; SArithmeticSupport *sasArray;
struct STableScanInfo* pi; struct STableScanInfo* pi;
SSDataBlock *ouptputBuf; SSDataBlock *outputBuf;
int32_t groupIndex; int32_t groupIndex;
int32_t tableIndex; int32_t tableIndex;
STableGroupInfo tableqinfoGroupInfo; // this is a group array list, including SArray<STableQueryInfo*> structure STableGroupInfo tableqinfoGroupInfo; // this is a group array list, including SArray<STableQueryInfo*> structure
} SQueryRuntimeEnv; } SQueryRuntimeEnv;
typedef struct {
char* name;
void* info;
} SQEStage;
enum { enum {
QUERY_RESULT_NOT_READY = 1, QUERY_RESULT_NOT_READY = 1,
QUERY_RESULT_READY = 2, QUERY_RESULT_READY = 2,
...@@ -325,7 +330,7 @@ typedef struct SQueryParam { ...@@ -325,7 +330,7 @@ typedef struct SQueryParam {
} SQueryParam; } SQueryParam;
typedef struct STableScanInfo { typedef struct STableScanInfo {
SQInfo* pQInfo; SQueryRuntimeEnv* pRuntimeEnv;
void *pQueryHandle; void *pQueryHandle;
int32_t numOfBlocks; int32_t numOfBlocks;
int32_t numOfSkipped; int32_t numOfSkipped;
...@@ -341,7 +346,7 @@ typedef struct STableScanInfo { ...@@ -341,7 +346,7 @@ typedef struct STableScanInfo {
SSDataBlock block; SSDataBlock block;
int64_t elapsedTime; int64_t elapsedTime;
SSDataBlock* (*apply)(void* param); SSDataBlock* (*exec)(void* param);
} STableScanInfo; } STableScanInfo;
typedef struct SAggOperatorInfo { typedef struct SAggOperatorInfo {
......
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册