-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #287 from taosdata/feat/TD-33208-MAIN
Feat: Superset Support TDengine Cloud And Suppport Views
- Loading branch information
Showing
6 changed files
with
78 additions
and
224 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -81,6 +81,34 @@ jobs: | |
(github.event_name == 'push' && steps.cache-server-push.outputs.cache-hit != 'true') | ||
run: brew install argp-standalone pkgconfig geos | ||
|
||
- name: Set up homebrew | ||
if: | | ||
github.event_name == 'pull_request' | ||
|| github.event_name == 'push' | ||
|| github.event_name == 'schedule' | ||
run: | | ||
brew update | ||
brew install --overwrite argp-standalone pkg-config | ||
brew info argp-standalone | ||
- name: Set up Go | ||
if: | | ||
github.event_name == 'pull_request' | ||
|| github.event_name == 'push' | ||
|| github.event_name == 'schedule' | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.18 | ||
|
||
- name: Set up Rust | ||
if: | | ||
github.event_name == 'pull_request' | ||
|| github.event_name == 'push' | ||
|| github.event_name == 'schedule' | ||
uses: actions-rs/[email protected] | ||
with: | ||
toolchain: stable | ||
|
||
- name: install TDengine | ||
if: > | ||
(github.event_name == 'workflow_dispatch' && steps.cache-server-manually.outputs.cache-hit != 'true') || | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,22 @@ | ||
import os | ||
import sys | ||
import taosws | ||
|
||
def test_ws_connect(): | ||
def taos_ws_connect(token): | ||
print("-" * 40) | ||
print("test_ws_connect") | ||
conn = taosws.connect("%s?token=%s" % ('wss://gw.cloud.taosdata.com', '68d41c020d2e9e3dcac18140460d1bcfd82d642d')) | ||
r = conn.query_with_req_id("show dnodes", 1) | ||
print("r: ", r.fields) | ||
conn = taosws.connect("%s?token=%s" % ('wss://gw.cloud.taosdata.com', token)) | ||
res = conn.query_with_req_id("show databases", 1) | ||
dbs = [row[0] for row in res] | ||
print(dbs) | ||
# check sys db exist | ||
assert "information_schema" in dbs | ||
assert "performance_schema" in dbs | ||
print("test_ws_connect done") | ||
print("-" * 40) | ||
|
||
if __name__ == "__main__": | ||
test_ws_connect() | ||
if len(sys.argv) < 2 : | ||
print("need token argument passed.\n") | ||
else: | ||
taos_ws_connect(sys.argv[1]) |
Oops, something went wrong.