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

Better clickhouse-client multiline input #31123

Merged
merged 1 commit into from
Dec 6, 2021

Conversation

amosbird
Copy link
Collaborator

@amosbird amosbird commented Nov 7, 2021

Changelog category (leave one):

  • Improvement

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Enable multiline editing in clickhouse-client by default. This addresses #31121 .

Before #30143 , we didn't support native multline editing in clickhouse-client. Thus bracketed pasting is only enabled when -n is enabled and -m is disabled (see #7757) . Now we allow multiple sections of multiline inputs delimited by extender character: \.

Detailed description / Documentation draft:
.

@robot-clickhouse robot-clickhouse added the pr-improvement Pull request with some product improvements label Nov 7, 2021
@amosbird amosbird force-pushed the repl-improvement branch 3 times, most recently from 28b26c2 to 25e7db4 Compare November 7, 2021 13:13
@amosbird
Copy link
Collaborator Author

amosbird commented Nov 7, 2021

“Timeout dropping database test_3gkcv6 after test”? but why

@novikd novikd self-assigned this Nov 9, 2021
@@ -11,7 +11,7 @@ ${CLICKHOUSE_CLIENT} -q "SELECT 'CREATE TABLE test_' || hex(randomPrintableASCII
function stress()
{
while true; do
"${CURDIR}"/01526_client_start_and_exit.expect-not-a-test-case | grep -v -P 'ClickHouse client|Connecting|Connected|:\) Bye\.|new year|^\s*$|spawn bash|^0\s*$'
"${CURDIR}"/01526_client_start_and_exit.expect-not-a-test-case | grep -v -P 'ClickHouse client|Connecting|Connected|:\) Bye\.|new year|^\s*$|spawn bash|\?2004l|^0\s*$'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't understand why this change checks correctness. Could you please explain it?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's most likely because parallel running expect emulated terminal doesn't work well with bracketed paste enabling sequence, which is \e033?2004l (FYI https://cirw.in/blog/bracketed-paste)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then write a comment inside the test, otherwise it's very obscure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-improvement Pull request with some product improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants