forked from ClickHouse/ClickHouse
-
Notifications
You must be signed in to change notification settings - Fork 17
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 ClickHouse#34275 from ClickHouse/fix-progress-bar
Fix progress bar width
- Loading branch information
Showing
3 changed files
with
21 additions
and
1 deletion.
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
Empty file.
20 changes: 20 additions & 0 deletions
20
tests/queries/0_stateless/02204_fractional_progress_bar.sh
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/usr/bin/expect -f | ||
# Tags: no-fasttest | ||
|
||
log_user 0 | ||
set timeout 60 | ||
match_max 100000 | ||
|
||
spawn clickhouse-local --progress --query "SELECT sum(number % 100000000 = 12345678 ? sleep(0.1) : 1) FROM numbers(1000000000)" | ||
|
||
expect { | ||
"▏" { exit 0 } | ||
"▎" { exit 0 } | ||
"▍" { exit 0 } | ||
"▌" { exit 0 } | ||
"▋" { exit 0 } | ||
"▋" { exit 0 } | ||
"▊" { exit 0 } | ||
"▉" { exit 0 } | ||
timeout { exit 1 } | ||
} |