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: Fix vacuum integration #13

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
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
6 changes: 3 additions & 3 deletions tests/suites/5_ee/01_vacuum/01_0000_ee_vacuum.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ def compact_data(name):

client1.send("create table gc_test(a int);")
client1.expect(prompt)
client1.send("unset enterprise_license")
client1.send("unset enterprise_license;")
client1.expect(prompt)
client1.send("set global enterprise_license='{}'".format(get_license()))
client1.send("set global enterprise_license='{}';".format(get_license()))
client1.expect(prompt)

insert_data("insert_data")
Expand All @@ -79,7 +79,7 @@ def compact_data(name):
mycursor.execute("select a from gc_test order by a;")
datas = mycursor.fetchall()

client1.send("unset enterprise_license")
client1.send("unset enterprise_license;")
client1.expect(prompt)

if old_datas != datas:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ bash ../scripts/ci/deploy/databend-query-standalone.sh > /dev/null 2>&1
# check if before and after vacuum table the table count matched
old_count=`echo "select * from test_vacuum.a order by c" | $MYSQL_CLIENT_CONNECT`

echo "vacuum table test_vacuum.a retain 0 hours" | | $MYSQL_CLIENT_CONNECT
echo "vacuum table test_vacuum.a retain 0 hours" | $MYSQL_CLIENT_CONNECT
#echo "optimize table test_vacuum.a all" | $MYSQL_CLIENT_CONNECT
count=`echo "select * from test_vacuum.a order by c" | $MYSQL_CLIENT_CONNECT`
if [ $old_count -ne $count ]; then
Expand Down