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

chore: bump sqlness to 0.1.1 #524

Merged
merged 4 commits into from
Dec 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ jobs:
run: |
diff ${LOCK_FILE} ${LOCK_FILE}.bak
- name: Run Sqlness
working-directory: integration_tests
run: |
cd tests
make run
env:
RUST_BACKTRACE: "1"
Expand Down
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ members = [
"components/table_kv",
"components/tracing_util",
"df_operator",
"integration_tests",
"interpreters",
"meta_client",
"proto",
Expand All @@ -41,7 +42,6 @@ members = [
"sql",
"system_catalog",
"table_engine",
"tests/sqlness",
"tools",
"wal",
]
Expand Down
2 changes: 1 addition & 1 deletion tests/sqlness/Cargo.toml → integration_tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ workspace = true
anyhow = "1.0.58"
async-trait = "0.1"
ceresdb-client-rs = { git = "https://github.com/CeresDB/ceresdb-client-rs.git", rev = "a9d9190f4f7b55171ea2ad142fb41dc9909c19c5" }
sqlness = "0.1"
sqlness = "0.1.1"
tokio = { workspace = true }
10 changes: 5 additions & 5 deletions tests/Makefile → integration_tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ DATA_DIR = /tmp/ceresdb
export CERESDB_BINARY_PATH ?= $(ROOT)/../target/$(MODE)/ceresdb-server
export CERESDB_SERVER_ENDPOINT ?= 127.0.0.1:8831
export CERESDB_TEST_CASE_PATH ?= $(ROOT)/cases
export CERESDB_TEST_SQLNESS ?= $(ROOT)/../target/$(MODE)/ceresdb-test
export CERESDB_TEST_BINARY ?= $(ROOT)/../target/$(MODE)/ceresdb-test
export CERESDB_STDOUT_FILE ?= /tmp/ceresdb-stdout.log
export CERESDB_STDERR_FILE ?= /tmp/ceresdb-stderr.log

Expand All @@ -16,15 +16,15 @@ clean:
build-ceresdb:
cd .. && cargo build --bin ceresdb-server

build-sqlness:
cd sqlness && cargo build
build-test:
cargo build

build: build-ceresdb build-sqlness
build: build-ceresdb build-test

# rename ${case}.output to ${case}.result automatically. fd is required
# https://github.com/sharkdp/fd
fix:
fd -t f output --exec mv {} {.}.result \;

run: clean build
cd sqlness && $(CERESDB_TEST_SQLNESS)
$(CERESDB_TEST_BINARY)
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,5 @@ FROM
ORDER BY
`c1` ASC;

tsid,timestamp,c1,c2,c3,c4,c5,
Int64(0),Timestamp(Timestamp(1)),Int64(10),String(StringBytes(b"123")),Int64(11),Int64(12),Int64(3),
Int64(0),Timestamp(Timestamp(2)),Int64(20),String(StringBytes(b"123")),Int64(21),Int64(22),Int64(4),
Int64(0),Timestamp(Timestamp(3)),Int64(30),String(StringBytes(b"123")),Int64(31),Int64(32),Int64(5),

Failed to execute query, err: Server(ServerError { code: 500, msg: "Failed to convert output, query: SELECT \n * \n FROM \n `03_dml_insert_mode_table4` \n ORDER BY \n `c1` ASC;. Caused by: Rpc error, code:500, message:failed to convert record batch, cause:Failed to write avro record, err:Value does not match schema." })

File renamed without changes.
File renamed without changes.
File renamed without changes.