Skip to content

Better clickhouse-client multiline input#31123

Merged
alexey-milovidov merged 1 commit intoClickHouse:masterfrom
amosbird:repl-improvement
Dec 6, 2021
Merged

Better clickhouse-client multiline input#31123
alexey-milovidov merged 1 commit intoClickHouse:masterfrom
amosbird:repl-improvement

Conversation

@amosbird
Copy link
Copy Markdown
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
Copy Markdown
Collaborator Author

amosbird commented Nov 7, 2021

“Timeout dropping database test_3gkcv6 after test”? but why

@novikd novikd self-assigned this Nov 9, 2021
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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