Skip to content

Commit 1bc464b

Browse files
authored
Merge pull request #314 from taosdata/merge/3.0tomain_250324
merge: from 3.0 to main for decimal data type
2 parents 0f3fa13 + 67faad5 commit 1bc464b

File tree

6 files changed

+27
-14
lines changed

6 files changed

+27
-14
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
id: determine-branch
7575
with:
7676
cond: ${{ github.base_ref == 'main' }}
77-
if_true: 'main'
77+
if_true: '3.3.6'
7878
if_false: '3.0'
7979

8080
- name: Checkout tdengine

.github/workflows/mac.yml

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,27 @@ jobs:
2222
outputs:
2323
commit_id: ${{ steps.get_commit_id.outputs.commit_id }}
2424
steps:
25+
#----------------------------------------------
26+
# Determine TDengine branch dynamically
27+
#----------------------------------------------
28+
- name: Determine TDengine branch
29+
uses: haya14busa/action-cond@v1
30+
id: determine-branch
31+
with:
32+
cond: ${{ github.base_ref == 'main' }}
33+
if_true: '3.3.6'
34+
if_false: '3.0'
35+
36+
#----------------------------------------------
37+
# Checkout TDengine repository
38+
#----------------------------------------------
2539
- name: Checkout TDengine
26-
if: |
27-
github.event_name == 'pull_request'
28-
|| github.event_name == 'push'
29-
|| github.event_name == 'schedule'
3040
uses: actions/checkout@v4
3141
with:
32-
repository: 'taosdata/TDengine'
33-
path: 'TDengine'
34-
ref: ${{ github.event.pull_request.base.ref }}
35-
42+
repository: "taosdata/TDengine"
43+
path: "TDengine"
44+
ref: ${{ steps.determine-branch.outputs.value }}
45+
3646
- name: get_commit_id
3747
id: get_commit_id
3848
run: |
@@ -274,7 +284,6 @@ jobs:
274284
275285
- name: prepare install
276286
run: |
277-
brew install geos
278287
sudo mkdir -p /usr/local/lib
279288
sudo mkdir -p /usr/local/include
280289
@@ -353,6 +362,8 @@ jobs:
353362
# run test suite
354363
#----------------------------------------------
355364
- name: Test
365+
env:
366+
DYLD_LIBRARY_PATH: /usr/local/lib:$DYLD_LIBRARY_PATH
356367
run: |
357368
source $VENV
358369
export TDENGINE_URL=localhost:6041

.github/workflows/taos-ws-py.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ jobs:
162162
id: determine-branch
163163
with:
164164
cond: ${{ github.base_ref == 'main' }}
165-
if_true: 'main'
165+
if_true: '3.3.6'
166166
if_false: '3.0'
167167

168168
- name: Checkout tdengine

.github/workflows/test-td-case.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ jobs:
7979
id: determine-branch
8080
with:
8181
cond: ${{ github.base_ref == 'main' }}
82-
if_true: 'main'
82+
if_true: '3.3.6'
8383
if_false: '3.0'
8484

8585
- name: Checkout tdengine

.github/workflows/test-ubuntu-2004.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ jobs:
7777
id: determine-branch
7878
with:
7979
cond: ${{ github.base_ref == 'main' }}
80-
if_true: 'main'
80+
if_true: '3.3.6'
8181
if_false: '3.0'
8282

8383
- name: Checkout tdengine

tests/test_cinterface.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,6 +563,7 @@ def test_taos_stmt2_get_fields():
563563

564564
# check
565565
check_fields = [
566+
TaosFieldAllCls("tbname", 8, 0, 0, 271, 4),
566567
TaosFieldAllCls("grade", 8, 0, 0, 26, 2),
567568
TaosFieldAllCls("class", 4, 0, 0, 4, 2),
568569
TaosFieldAllCls("ts", 9, 0, 0, 8, 1),
@@ -571,7 +572,8 @@ def test_taos_stmt2_get_fields():
571572
TaosFieldAllCls("score", 4, 0, 0, 4, 1)
572573
]
573574
count, fields = taos_stmt2_get_fields(stmt2)
574-
assert count == cnt_tags + cnt_cols
575+
print("count: %d, fields: %s" % (count, fields))
576+
assert count == cnt_tags + cnt_cols + 1
575577
assert len(fields) == count
576578
for i in range(count):
577579
assert fields[i].name == check_fields[i].name

0 commit comments

Comments
 (0)