Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

other: merge main to 3.0 #22875

Merged
merged 108 commits into from
Sep 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
108 commits
Select commit Hold shift + click to select a range
9ddf117
add websocket connection
xiaopingcs Sep 1, 2023
83e2e0d
fix: remove tags keyword from document
shenglian-zhou Sep 4, 2023
03cddfa
fix rc
Sep 4, 2023
69428fd
Merge pull request #22710 from taosdata/fix/select-tags-removal
dapan1121 Sep 4, 2023
2cf1da0
other: update the version.
hjxilinx Sep 4, 2023
1a0480c
fix/TD-22062
cadem Sep 4, 2023
a0fadb0
fix:support length function for varbinary
wangmm0220 Sep 4, 2023
43ebdd9
docs:modify doc
wangmm0220 Sep 4, 2023
88e6903
Merge pull request #22714 from taosdata/fix/main-merge
hjxilinx Sep 4, 2023
22b53c3
fix: 1. select tag from meters partition by tag limit returned wrong …
wangjiaming0909 Sep 1, 2023
b7b97e7
TD-23722: add case for TMQ unsubscribe with taosAdapter
xiaopingcs Sep 4, 2023
0fed045
fix: fix last(*)/last_row(*) return MD5 hashed column name
glzhao89 Sep 4, 2023
0ab0b45
comment 5dnode3mnodeRoll.py
tomchon Sep 4, 2023
7a6cf0b
Merge pull request #22727 from taosdata/tomchon-patch-5
DuanKuanJun Sep 4, 2023
6f8c642
fix: use int64_t for num of rows returned
shenglian-zhou Aug 28, 2023
1185bba
fix: pass compilation
shenglian-zhou Sep 4, 2023
74b9eab
add test cases
glzhao89 Sep 5, 2023
8f27724
Merge pull request #22701 from taosdata/fix/test_1x
gccgdb1234 Sep 5, 2023
5f0c2c0
Merge branch 'main' into test/TD-23715
xiaopingcs Sep 5, 2023
8dbdecc
fix: coverity scan
hzcheng Sep 5, 2023
d0503a8
fix invalid read
Sep 5, 2023
07053ae
Merge pull request #22725 from taosdata/fix/TS-3895
dapan1121 Sep 5, 2023
df12221
Merge branch 'main' into test/TD-23722
xiaopingcs Sep 5, 2023
a3b749a
update test case
xiaopingcs Sep 5, 2023
db75bc4
update Dockerfile
xiaopingcs Sep 5, 2023
097e2b9
Merge pull request #22737 from taosdata/fix/3_liaohj
hjxilinx Sep 5, 2023
ac8f4f1
Merge pull request #22736 from taosdata/fix/fixTransferCrash
hjxilinx Sep 5, 2023
9bd30bc
Merge pull request #22724 from taosdata/test/TD-23722
gccgdb1234 Sep 5, 2023
0517358
Merge pull request #22717 from taosdata/fix/TD-22062
gccgdb1234 Sep 5, 2023
6dabf70
Merge pull request #22718 from taosdata/fix/TD-26126
hjxilinx Sep 5, 2023
3e72258
update jdbc version
xiaopingcs Sep 5, 2023
ed1691e
Merge pull request #22748 from taosdata/release/update_jdbc_version
gccgdb1234 Sep 5, 2023
600f89a
test:replace clock_gettime in cases for win
tomchon Sep 5, 2023
2530011
Update mxml_CMakeLists.txt.in (#22722)
hjxilinx Sep 5, 2023
6d5d4cb
docs: correct links to removed page
danielclow Sep 5, 2023
6b79947
fix: fix coverity scan issue
shenglian-zhou Sep 6, 2023
58c6b6f
Merge pull request #22728 from taosdata/fix/main/TD-25772
dapan1121 Sep 6, 2023
17d7c13
Merge pull request #22753 from taosdata/dclow/docs-zh
gccgdb1234 Sep 6, 2023
8cbc49a
Merge pull request #22696 from taosdata/fix/m/TD-26096
dapan1121 Sep 6, 2023
f9f7558
Update 02-intro.md (#22759)
ssq001 Sep 6, 2023
5dedaeb
fix: desc fill missed one window
wangjiaming0909 Sep 4, 2023
0b18689
fix: fix coverity issues
dapan1121 Sep 6, 2023
c86eeb3
fix(stream): add task status check when waiting for the table create.
hjxilinx Sep 6, 2023
841a36e
Merge pull request #22749 from taosdata/test/main/TD-26162
DuanKuanJun Sep 6, 2023
e607a0a
fix(stream): add some logs.
hjxilinx Sep 6, 2023
2cfe615
Update 14-java.mdx
gccgdb1234 Sep 6, 2023
89a49a4
Update 26-rust.mdx
gccgdb1234 Sep 6, 2023
875a081
fix: typo issue
dapan1121 Sep 6, 2023
a6743a3
Merge branch 'main' of https://github.com/taosdata/TDengine into fix/…
hzcheng Sep 6, 2023
8783ebc
enh(stream): add some logs and record the submit package performance.
hjxilinx Sep 6, 2023
236b363
fix(stream): fix syntax error.
hjxilinx Sep 6, 2023
b382cba
fix(stream): fix syntax error.
hjxilinx Sep 6, 2023
cd88c8e
fix: little test
hzcheng Sep 6, 2023
7257518
fix: tdbBtcDelete release pages before modifying pBtc->pPage
LiShunGang Sep 5, 2023
060f97f
install taos-ws-py for ci
xiaopingcs Sep 6, 2023
5c74d5f
Merge branch 'main' into test/TD-23715
xiaopingcs Sep 6, 2023
926cc01
refactor: do some internal refactor.
hjxilinx Sep 6, 2023
1d343fa
more fix
hzcheng Sep 6, 2023
7782530
test:modify method of stopall function
tomchon Sep 6, 2023
f8a3216
Merge pull request #22711 from taosdata/fix/TD-26069-1
hjxilinx Sep 6, 2023
e493f98
Merge pull request #22735 from taosdata/fix/TD-26133
gccgdb1234 Sep 6, 2023
42d63be
Merge pull request #22772 from taosdata/fix/TD-25996-main
gccgdb1234 Sep 6, 2023
a82027f
enh(stream): pack multi-datablock into one submit message.
hjxilinx Sep 6, 2023
5ba6a68
fix(stream): fix syntax error.
hjxilinx Sep 6, 2023
8edf86b
fix(stream): add some logs.
hjxilinx Sep 6, 2023
2b84e0b
refactor: check if the put data into queue is success or failed.
hjxilinx Sep 6, 2023
5982c80
Merge pull request #22780 from taosdata/test/main/TD-26181
DuanKuanJun Sep 6, 2023
b240e91
enh(stream): add token bucket to limit the rate of sink operation.
hjxilinx Sep 7, 2023
956047a
fix(stream): count down the token in bucket.
hjxilinx Sep 7, 2023
e407d7d
fix(stream): update log.
hjxilinx Sep 7, 2023
e4f52ba
Merge pull request #22764 from taosdata/fix/TD-26132
dapan1121 Sep 7, 2023
afbb6ed
Merge pull request #22755 from taosdata/fix/main/TD-26134
dapan1121 Sep 7, 2023
ba88dfe
Merge pull request #22697 from taosdata/test/TD-23715
DuanKuanJun Sep 7, 2023
dc82105
fix(stream): update the log.
hjxilinx Sep 7, 2023
fdeb924
Merge pull request #22715 from taosdata/fix/m/TD-26114
dapan1121 Sep 7, 2023
82222f1
other: disable detail display.
hjxilinx Sep 7, 2023
55ac835
Merge branch 'main' into fix/3_liaohj
hjxilinx Sep 7, 2023
b317c8e
fix(stream): disable merge submit blocks.
hjxilinx Sep 8, 2023
328377c
refactor: add some logs.
hjxilinx Sep 8, 2023
35b97cb
fix(stream): set correct token in bucket.
hjxilinx Sep 8, 2023
bf79c2c
fix(stream): limit the sink rate
hjxilinx Sep 8, 2023
e4918e8
fix(stream): limit the sink rate
hjxilinx Sep 8, 2023
47fd144
other: add some logs.
hjxilinx Sep 9, 2023
6f5c855
fix(stream): fix msg lost bug.
hjxilinx Sep 9, 2023
aa8909b
other: add some logs.
hjxilinx Sep 9, 2023
9a30573
fix(stream): disable scan wal when halt is set.
hjxilinx Sep 9, 2023
85a5c45
fix(stream): limit the already processed data.
hjxilinx Sep 9, 2023
4ffb4a5
refactor: disable some logs.
hjxilinx Sep 10, 2023
10271ae
fix(stream): fix syntax error in unit test.
hjxilinx Sep 10, 2023
a932124
fix(stream): set the correct flag when there is one token existed.
hjxilinx Sep 10, 2023
50ef500
refactor(stream): do sink module refactor.
hjxilinx Sep 11, 2023
0980e02
fix(stream): set the correct start version for the step 2 stage in fi…
hjxilinx Sep 11, 2023
c729fc9
fix(stream): set the init start timestamp.
hjxilinx Sep 11, 2023
3b79ab3
fix(stream): reset the init ts.
hjxilinx Sep 11, 2023
45880f7
fix(stream): fix display error in logs.
hjxilinx Sep 11, 2023
5ab739a
fix(stream): fix memory leak.
hjxilinx Sep 11, 2023
24524e1
fix(stream): fix the invalid length of tag column name.
hjxilinx Sep 11, 2023
e8f7146
fix(tsdb): check the schema before merge rows in buffer, and do some …
hjxilinx Sep 11, 2023
a5b93aa
fix(tsdb): fix invalid read.
hjxilinx Sep 11, 2023
f602aa9
fix(stream): fix coverity scan issues.
hjxilinx Sep 12, 2023
9315972
fix(stream):check error when vnode is closing.
hjxilinx Sep 12, 2023
30db04d
fix(test): update test case.
hjxilinx Sep 12, 2023
78a5680
fix(stream): add some logs.
hjxilinx Sep 12, 2023
e457d94
refactor: do some internal refactor.
hjxilinx Sep 12, 2023
66676b9
fix(stream): set correct number items in outputQ
hjxilinx Sep 12, 2023
13c20fa
fix(stream): fix syntax error.
hjxilinx Sep 12, 2023
f6a097d
refactor: do some internal refactor.
hjxilinx Sep 12, 2023
60f5056
other: merge 3.0
hjxilinx Sep 12, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion Jenkinsfile2
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,9 @@ def pre_test_build_win() {
python.exe -m pip install --upgrade pip
python -m pip uninstall taospy -y
python -m pip install taospy==2.7.10
xcopy /e/y/i/f %WIN_INTERNAL_ROOT%\\debug\\build\\lib\\taos.dll C:\\Windows\\System32
python -m pip uninstall taos-ws-py -y
python -m pip install taos-ws-py==0.2.8
xcopy /e/y/i/f %WIN_INTERNAL_ROOT%\\debug\\build\\lib\\taos.dll C:\\Windows\\System32
'''
return 1
}
Expand Down
2 changes: 1 addition & 1 deletion cmake/cmake.define
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.0)
set(CMAKE_VERBOSE_MAKEFILE ON)
set(CMAKE_VERBOSE_MAKEFILE FALSE)
set(TD_BUILD_TAOSA_INTERNAL FALSE)

#set output directory
Expand Down
2 changes: 1 addition & 1 deletion cmake/cmake.version
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
IF (DEFINED VERNUMBER)
SET(TD_VER_NUMBER ${VERNUMBER})
ELSE ()
SET(TD_VER_NUMBER "3.2.0.0.alpha")
SET(TD_VER_NUMBER "3.1.2.0.alpha")
ENDIF ()

IF (DEFINED VERCOMPATIBLE)
Expand Down
10 changes: 1 addition & 9 deletions docs/en/12-taos-sql/06-select.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ description: This document describes how to query data in TDengine.
```sql
SELECT {DATABASE() | CLIENT_VERSION() | SERVER_VERSION() | SERVER_STATUS() | NOW() | TODAY() | TIMEZONE() | CURRENT_USER() | USER() }

SELECT [hints] [DISTINCT] [TAGS] select_list
SELECT [hints] [DISTINCT] select_list
from_clause
[WHERE condition]
[partition_by_clause]
Expand Down Expand Up @@ -225,14 +225,6 @@ The \_IROWTS pseudocolumn can only be used with INTERP function. This pseudocolu
select _irowts, interp(current) from meters range('2020-01-01 10:00:00', '2020-01-01 10:30:00') every(1s) fill(linear);
```

### TAGS Query

The TAGS keyword returns only tag columns from all child tables when only tag columns are specified. One row containing tag columns is returned for each child table.

```sql
SELECT TAGS tag_name [, tag_name ...] FROM stb_name
```

## Query Objects

`FROM` can be followed by a number of tables or super tables, or can be followed by a sub-query.
Expand Down
4 changes: 2 additions & 2 deletions docs/en/12-taos-sql/10-function.md
Original file line number Diff line number Diff line change
Expand Up @@ -292,11 +292,11 @@ CONCAT_WS(separator_expr, expr1, expr2 [, expr] ...)
LENGTH(expr)
```

**Description**: The length in bytes of a string
**Description**: The length in bytes

**Return value type**: Bigint

**Applicable data types**: VARCHAR and NCHAR fields or columns
**Applicable data types**: VARCHAR and NCHAR and VARBINARY

**Nested query**: It can be used in both the outer query and inner query in a nested query.

Expand Down
2 changes: 1 addition & 1 deletion docs/zh/02-intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ TDengine 是一款开源、高性能、云原生的[时序数据库](https://tde

## 主要产品

TDengine 有三个主要产品:TDengine Pro (即 TDengine 企业版),TDengine Cloud,和 TDengine OSS,关于它们的具体定义请参考
TDengine 有三个主要产品:TDengine Enterprise (即 TDengine 企业版),TDengine Cloud,和 TDengine OSS,关于它们的具体定义请参考
- [TDengine 企业版](https://www.taosdata.com/tdengine-pro)
- [TDengine 云服务](https://cloud.taosdata.com/?utm_source=menu&utm_medium=webcn)
- [TDengine 开源版](https://www.taosdata.com/tdengine-oss)
Expand Down
12 changes: 1 addition & 11 deletions docs/zh/12-taos-sql/06-select.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ description: 查询数据的详细语法
```sql
SELECT {DATABASE() | CLIENT_VERSION() | SERVER_VERSION() | SERVER_STATUS() | NOW() | TODAY() | TIMEZONE() | CURRENT_USER() | USER() }

SELECT [hints] [DISTINCT] [TAGS] select_list
SELECT [hints] [DISTINCT] select_list
from_clause
[WHERE condition]
[partition_by_clause]
Expand Down Expand Up @@ -160,16 +160,6 @@ SELECT DISTINCT col_name [, col_name ...] FROM tb_name;

:::

### 标签查询

当查询的列只有标签列时,`TAGS` 关键字可以指定返回所有子表的标签列。每个子表只返回一行标签列。

返回所有子表的标签列:

```sql
SELECT TAGS tag_name [, tag_name ...] FROM stb_name
```

### 结果集列名

`SELECT`子句中,如果不指定返回结果集合的列名,结果集列名称默认使用`SELECT`子句中的表达式名称作为列名称。此外,用户可使用`AS`来重命名返回结果集合中列的名称。例如:
Expand Down
4 changes: 2 additions & 2 deletions docs/zh/12-taos-sql/10-function.md
Original file line number Diff line number Diff line change
Expand Up @@ -292,11 +292,11 @@ CONCAT_WS(separator_expr, expr1, expr2 [, expr] ...)
LENGTH(expr)
```

**功能说明**:以字节计数的字符串长度
**功能说明**:以字节计数的长度

**返回结果类型**:BIGINT。

**适用数据类型**:输入参数是 VARCHAR 类型或者 NCHAR 类型的字符串或者列
**适用数据类型**:VARCHAR, NCHAR, VARBINARY

**嵌套子查询支持**:适用于内层查询和外层查询。

Expand Down
2 changes: 1 addition & 1 deletion include/common/ttime.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ static FORCE_INLINE int64_t taosGetTimestampToday(int32_t precision) {
int64_t taosTimeAdd(int64_t t, int64_t duration, char unit, int32_t precision);

int64_t taosTimeTruncate(int64_t ts, const SInterval* pInterval);
int32_t taosTimeCountInterval(int64_t skey, int64_t ekey, int64_t interval, char unit, int32_t precision);
int32_t taosTimeCountIntervalForFill(int64_t skey, int64_t ekey, int64_t interval, char unit, int32_t precision, int32_t order);

int32_t parseAbsoluteDuration(const char* token, int32_t tokenlen, int64_t* ts, char* unit, int32_t timePrecision);
int32_t parseNatualDuration(const char* token, int32_t tokenLen, int64_t* duration, char* unit, int32_t timePrecision);
Expand Down
31 changes: 22 additions & 9 deletions include/libs/stream/tstream.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,14 +111,12 @@ typedef int32_t FTaskExpand(void* ahandle, SStreamTask* pTask, int64_t ver);
typedef struct {
int8_t type;
int64_t ver;
int32_t* dataRef;
SPackedData submit;
} SStreamDataSubmit;

typedef struct {
int8_t type;
int64_t ver;
SArray* dataRefs; // SArray<int32_t*>
SArray* submits; // SArray<SPackedSubmit>
} SStreamMergedSubmit;

Expand Down Expand Up @@ -260,7 +258,7 @@ typedef struct SStreamTaskId {
typedef struct SCheckpointInfo {
int64_t checkpointId;
int64_t checkpointVer; // latest checkpointId version
int64_t currentVer; // current offset in WAL, not serialize it
int64_t nextProcessVer; // current offset in WAL, not serialize it
} SCheckpointInfo;

typedef struct SStreamStatus {
Expand Down Expand Up @@ -312,12 +310,27 @@ typedef struct STaskSchedInfo {
void* pTimer;
} STaskSchedInfo;

typedef struct SSinkTaskRecorder {
int64_t numOfSubmit;
int64_t numOfBlocks;
int64_t numOfRows;
} SSinkTaskRecorder;

typedef struct {
int64_t created;
int64_t init;
int64_t step1Start;
int64_t step2Start;
int64_t sinkStart;
} STaskTimestamp;

typedef struct STokenBucket {
int32_t capacity; // total capacity
int64_t fillTimestamp;// fill timestamp
int32_t numOfToken; // total available tokens
int32_t rate; // number of token per second
} STokenBucket;

struct SStreamTask {
int64_t ver;
SStreamTaskId id;
Expand Down Expand Up @@ -345,6 +358,8 @@ struct SStreamTask {
STaskSinkSma smaSink;
STaskSinkFetch fetchSink;
};
SSinkTaskRecorder sinkRecorder;
STokenBucket tokenBucket;

void* launchTaskTimer;
SMsgCb* pMsgCb; // msg handle
Expand Down Expand Up @@ -419,8 +434,9 @@ int32_t tDecodeStreamTaskChkInfo(SDecoder* pDecoder, SCheckpointInfo* pChkpInfo)
int32_t tDecodeStreamTaskId(SDecoder* pDecoder, SStreamTaskId* pTaskId);

int32_t streamTaskPutDataIntoInputQ(SStreamTask* pTask, SStreamQueueItem* pItem);
int32_t streamTaskPutDataIntoOutputQ(SStreamTask* pTask, SStreamDataBlock* pBlock);
int32_t streamTaskPutTranstateIntoInputQ(SStreamTask* pTask);
bool streamQueueIsFull(const STaosQueue* pQueue);
bool streamQueueIsFull(const STaosQueue* pQueue, bool inputQ);

typedef struct {
SMsgHead head;
Expand Down Expand Up @@ -630,12 +646,10 @@ SStreamChildEpInfo* streamTaskGetUpstreamTaskEpInfo(SStreamTask* pTask, int32_t
void streamTaskInputFail(SStreamTask* pTask);
int32_t streamTryExec(SStreamTask* pTask);
int32_t streamSchedExec(SStreamTask* pTask);
int32_t streamTaskOutputResultBlock(SStreamTask* pTask, SStreamDataBlock* pBlock);
bool streamTaskShouldStop(const SStreamStatus* pStatus);
bool streamTaskShouldPause(const SStreamStatus* pStatus);
bool streamTaskIsIdle(const SStreamTask* pTask);

int32_t streamScanExec(SStreamTask* pTask, int32_t batchSize);
void initRpcMsg(SRpcMsg* pMsg, int32_t msgType, void* pCont, int32_t contLen);

char* createStreamTaskIdStr(int64_t streamId, int32_t taskId);
Expand All @@ -655,7 +669,7 @@ int32_t streamLaunchFillHistoryTask(SStreamTask* pTask);
int32_t streamTaskScanHistoryDataComplete(SStreamTask* pTask);
int32_t streamStartScanHistoryAsync(SStreamTask* pTask, int8_t igUntreated);
bool streamHistoryTaskSetVerRangeStep2(SStreamTask* pTask, int64_t latestVer);
int32_t streamTaskGetInputQItems(const SStreamTask* pTask);
int32_t streamQueueGetNumOfItems(const SStreamQueue* pQueue);

// common
int32_t streamRestoreParam(SStreamTask* pTask);
Expand All @@ -679,11 +693,10 @@ void streamTaskOpenAllUpstreamInput(SStreamTask* pTask);
// source level
int32_t streamSetParamForStreamScannerStep1(SStreamTask* pTask, SVersionRange* pVerRange, STimeWindow* pWindow);
int32_t streamSetParamForStreamScannerStep2(SStreamTask* pTask, SVersionRange* pVerRange, STimeWindow* pWindow);
int32_t streamSourceScanHistoryData(SStreamTask* pTask);
int32_t streamScanHistoryData(SStreamTask* pTask);
int32_t streamDispatchScanHistoryFinishMsg(SStreamTask* pTask);

// agg level
int32_t streamTaskScanHistoryPrepare(SStreamTask* pTask);
int32_t streamProcessScanHistoryFinishReq(SStreamTask* pTask, SStreamScanHistoryFinishReq* pReq,
SRpcHandleInfo* pRpcInfo);
int32_t streamProcessScanHistoryFinishRsp(SStreamTask* pTask);
Expand Down
2 changes: 1 addition & 1 deletion include/libs/wal/wal.h
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ int32_t walApplyVer(SWal *, int64_t ver);
// int32_t walDataCorrupted(SWal*);

// wal reader
SWalReader *walOpenReader(SWal *, SWalFilterCond *pCond);
SWalReader *walOpenReader(SWal *, SWalFilterCond *pCond, int64_t id);
void walCloseReader(SWalReader *pRead);
void walReadReset(SWalReader *pReader);
int32_t walReadVer(SWalReader *pRead, int64_t ver);
Expand Down
2 changes: 1 addition & 1 deletion include/util/taoserror.h
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,7 @@ int32_t* taosGetErrno();

// stream
#define TSDB_CODE_STREAM_TASK_NOT_EXIST TAOS_DEF_ERROR_CODE(0, 0x4100)
#define TSDB_CODE_STREAM_BACKPRESSURE_OUT_OF_QUEUE TAOS_DEF_ERROR_CODE(0, 0x4101)
#define TSDB_CODE_STREAM_EXEC_CANCELLED TAOS_DEF_ERROR_CODE(0, 0x4102)

// TDLite
#define TSDB_CODE_TDLITE_IVLD_OPEN_FLAGS TAOS_DEF_ERROR_CODE(0, 0x5100)
Expand Down
2 changes: 1 addition & 1 deletion packaging/tools/makepkg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ if [ "$verMode" == "cluster" ]; then
tmp_pwd=`pwd`
cd ${install_dir}/connector
if [ ! -d taos-connector-jdbc ];then
git clone -b 3.2.1 --depth=1 https://github.com/taosdata/taos-connector-jdbc.git ||:
git clone -b main --depth=1 https://github.com/taosdata/taos-connector-jdbc.git ||:
fi
cd taos-connector-jdbc
mvn clean package -Dmaven.test.skip=true
Expand Down
10 changes: 4 additions & 6 deletions source/client/src/clientEnv.c
Original file line number Diff line number Diff line change
Expand Up @@ -380,8 +380,7 @@ void destroySubRequests(SRequestObj *pRequest) {
pReqList[++reqIdx] = pTmp;
releaseRequest(tmpRefId);
} else {
tscError("0x%" PRIx64 ", prev req ref 0x%" PRIx64 " is not there, reqId:0x%" PRIx64, pTmp->self, tmpRefId,
pTmp->requestId);
tscError("prev req ref 0x%" PRIx64 " is not there", tmpRefId);
break;
}
}
Expand All @@ -398,7 +397,7 @@ void destroySubRequests(SRequestObj *pRequest) {
removeRequest(pTmp->self);
releaseRequest(pTmp->self);
} else {
tscError("0x%" PRIx64 " is not there", tmpRefId);
tscError("next req ref 0x%" PRIx64 " is not there", tmpRefId);
break;
}
}
Expand Down Expand Up @@ -492,8 +491,7 @@ void stopAllQueries(SRequestObj *pRequest) {
pReqList[++reqIdx] = pTmp;
releaseRequest(tmpRefId);
} else {
tscError("0x%" PRIx64 ", prev req ref 0x%" PRIx64 " is not there, reqId:0x%" PRIx64, pTmp->self, tmpRefId,
pTmp->requestId);
tscError("prev req ref 0x%" PRIx64 " is not there", tmpRefId);
break;
}
}
Expand All @@ -512,7 +510,7 @@ void stopAllQueries(SRequestObj *pRequest) {
taosStopQueryImpl(pTmp);
releaseRequest(pTmp->self);
} else {
tscError("0x%" PRIx64 " is not there", tmpRefId);
tscError("next req ref 0x%" PRIx64 " is not there", tmpRefId);
break;
}
}
Expand Down
14 changes: 9 additions & 5 deletions source/client/src/clientMain.c
Original file line number Diff line number Diff line change
Expand Up @@ -874,8 +874,13 @@ void handleSubQueryFromAnalyse(SSqlCallbackWrapper *pWrapper, SMetaData *pResult
if (TSDB_CODE_SUCCESS == code) {
code = cloneCatalogReq(&pNewWrapper->pCatalogReq, pWrapper->pCatalogReq);
}
doAsyncQueryFromAnalyse(pResultMeta, pNewWrapper, code);
nodesDestroyNode(pRoot);
if (TSDB_CODE_SUCCESS == code) {
doAsyncQueryFromAnalyse(pResultMeta, pNewWrapper, code);
nodesDestroyNode(pRoot);
} else {
handleQueryAnslyseRes(pWrapper, pResultMeta, code);
return;
}
}

void handleQueryAnslyseRes(SSqlCallbackWrapper *pWrapper, SMetaData *pResultMeta, int32_t code) {
Expand Down Expand Up @@ -1148,8 +1153,7 @@ void restartAsyncQuery(SRequestObj *pRequest, int32_t code) {
pReqList[++reqIdx] = pTmp;
releaseRequest(tmpRefId);
} else {
tscError("0x%" PRIx64 ", prev req ref 0x%" PRIx64 " is not there, reqId:0x%" PRIx64, pTmp->self, tmpRefId,
pTmp->requestId);
tscError("prev req ref 0x%" PRIx64 " is not there", tmpRefId);
break;
}
}
Expand All @@ -1162,7 +1166,7 @@ void restartAsyncQuery(SRequestObj *pRequest, int32_t code) {
removeRequest(pTmp->self);
releaseRequest(pTmp->self);
} else {
tscError("0x%" PRIx64 " is not there", tmpRefId);
tscError("next req ref 0x%" PRIx64 " is not there", tmpRefId);
break;
}
}
Expand Down
16 changes: 5 additions & 11 deletions source/common/src/tdatablock.c
Original file line number Diff line number Diff line change
Expand Up @@ -2139,22 +2139,16 @@ int32_t buildCtbNameByGroupIdImpl(const char* stbFullName, uint64_t groupId, cha
return TSDB_CODE_FAILED;
}

SSmlKv pTag = {.key = "group_id",
.keyLen = sizeof("group_id") - 1,
.type = TSDB_DATA_TYPE_UBIGINT,
.u = groupId,
.length = sizeof(uint64_t)};
int8_t type = TSDB_DATA_TYPE_UBIGINT;
const char* name = "group_id";
int32_t len = strlen(name);
SSmlKv pTag = { .key = name, .keyLen = len, .type = type, .u = groupId, .length = sizeof(uint64_t)};
taosArrayPush(tags, &pTag);

RandTableName rname = {
.tags = tags,
.stbFullName = stbFullName,
.stbFullNameLen = strlen(stbFullName),
.ctbShortName = cname,
};
.tags = tags, .stbFullName = stbFullName, .stbFullNameLen = strlen(stbFullName), .ctbShortName = cname};

buildChildTableName(&rname);

taosArrayDestroy(tags);

if ((rname.ctbShortName && rname.ctbShortName[0]) == 0) {
Expand Down