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

Allow multi-line ';'-delimited cdb2sql statements #4938

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

morgando
Copy link
Contributor

See tests for example use

@morgando morgando force-pushed the sql-tail branch 4 times, most recently from 8156d61 to 54ac0ba Compare December 27, 2024 19:36
Copy link

@roborivers roborivers left a comment

Choose a reason for hiding this comment

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

Coding style check: Error. ⚠.
Smoke testing: Success ✓.
Cbuild submission: Success ✓.
Regression testing: 0/0 tests failed ⚠.


// Processes ddl statements as '$$' delimited blocks
// and all other statements as single lines.
class DdlBlockInputProcessor : public InputProcessor {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't like this name

@morgando morgando force-pushed the sql-tail branch 2 times, most recently from a194333 to f423e7f Compare December 27, 2024 22:29
@mponomar
Copy link
Contributor

Looks good. Maybe a different prompt if the last statement was incomplete?
eg:

cdb2sql> select
...> 1 as a;
(a=1)
cdb2sql>

Just a suggestion, works great without it.

mponomar
mponomar previously approved these changes Dec 30, 2024
@morgando morgando force-pushed the sql-tail branch 4 times, most recently from 1342155 to 53e8652 Compare January 2, 2025 19:09
Signed-off-by: Morgan Douglas <[email protected]>

Add to refactor

Signed-off-by: Morgan Douglas <[email protected]>

Add to refactor

Signed-off-by: Morgan Douglas <[email protected]>

Add to refactor

Signed-off-by: Morgan Douglas <[email protected]>

Tweak refactor

Signed-off-by: Morgan Douglas <[email protected]>

Tweak refactor

Signed-off-by: Morgan Douglas <[email protected]>

Tweak refactor

Signed-off-by: Morgan Douglas <[email protected]>

Tweak refactor

Signed-off-by: Morgan Douglas <[email protected]>

Tweak refactor

Signed-off-by: Morgan Douglas <[email protected]>

WIP completerbuf->std::string

Signed-off-by: Morgan Douglas <[email protected]>

Tweak refactor

Signed-off-by: Morgan Douglas <[email protected]>

Tweak refactor

Signed-off-by: Morgan Douglas <[email protected]>

Tweak refactor

Signed-off-by: Morgan Douglas <[email protected]>

Tweak refactor

Signed-off-by: Morgan Douglas <[email protected]>

Tweak refactor

Signed-off-by: Morgan Douglas <[email protected]>

Tweak refactor

Signed-off-by: Morgan Douglas <[email protected]>

Tweak refactor

Signed-off-by: Morgan Douglas <[email protected]>

Tweak refactor

Signed-off-by: Morgan Douglas <[email protected]>

Tweak refactor

Signed-off-by: Morgan Douglas <[email protected]>

Tweak refactor

Signed-off-by: Morgan Douglas <[email protected]>

Tweak refactor

Signed-off-by: Morgan Douglas <[email protected]>

Tweak refactor

Signed-off-by: Morgan Douglas <[email protected]>

Tweak refactor

Signed-off-by: Morgan Douglas <[email protected]>

Tweak refactor

Signed-off-by: Morgan Douglas <[email protected]>

Tweak refactor

Signed-off-by: Morgan Douglas <[email protected]>

Tweak refactor

Signed-off-by: Morgan Douglas <[email protected]>

Tweak refactor

Signed-off-by: Morgan Douglas <[email protected]>

Tweak refactor

Signed-off-by: Morgan Douglas <[email protected]>

Tweak refactor

Signed-off-by: Morgan Douglas <[email protected]>

Tweak refactor

Signed-off-by: Morgan Douglas <[email protected]>

Tweak refactor

Signed-off-by: Morgan Douglas <[email protected]>

Tweak refactor

Signed-off-by: Morgan Douglas <[email protected]>

Tweak refactor

Signed-off-by: Morgan Douglas <[email protected]>

Tweak refactor

Signed-off-by: Morgan Douglas <[email protected]>

Use different prompt mid-stmt

Signed-off-by: Morgan Douglas <[email protected]>

Tweak refactor

Signed-off-by: Morgan Douglas <[email protected]>

Tweak refactor

Signed-off-by: Morgan Douglas <[email protected]>

WIP: Support ';'

Signed-off-by: Morgan Douglas <[email protected]>

Tweak refactor

Signed-off-by: Morgan Douglas <[email protected]>

Tweak refactor

Signed-off-by: Morgan Douglas <[email protected]>

Tweak refactor

Signed-off-by: Morgan Douglas <[email protected]>

Tweak refactor

Signed-off-by: Morgan Douglas <[email protected]>

Tweak refactor

Signed-off-by: Morgan Douglas <[email protected]>

Tweak refactor

Signed-off-by: Morgan Douglas <[email protected]>
Signed-off-by: Morgan Douglas <[email protected]>

Tweak tests

Signed-off-by: Morgan Douglas <[email protected]>

Tweak tests

Signed-off-by: Morgan Douglas <[email protected]>

Tweak tests

Signed-off-by: Morgan Douglas <[email protected]>

Tweak tests

Signed-off-by: Morgan Douglas <[email protected]>

Tweak tests

Signed-off-by: Morgan Douglas <[email protected]>

Tweak tests

Signed-off-by: Morgan Douglas <[email protected]>

Tweak tests

Signed-off-by: Morgan Douglas <[email protected]>

Tweak tests

Signed-off-by: Morgan Douglas <[email protected]>

Tweak tests

Signed-off-by: Morgan Douglas <[email protected]>

Tweak tests

Signed-off-by: Morgan Douglas <[email protected]>

Tweak tests

Signed-off-by: Morgan Douglas <[email protected]>

Tweak tests

Signed-off-by: Morgan Douglas <[email protected]>

Tweak tests

Signed-off-by: Morgan Douglas <[email protected]>

Tweak tests

Signed-off-by: Morgan Douglas <[email protected]>

Tweak tests

Signed-off-by: Morgan Douglas <[email protected]>

Tweak tests

Signed-off-by: Morgan Douglas <[email protected]>

Tweak tests

Signed-off-by: Morgan Douglas <[email protected]>
Copy link

@roborivers roborivers left a comment

Choose a reason for hiding this comment

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

Coding style check: Error. ⚠.
Smoke testing: Success ✓.
Cbuild submission: Success ✓.
Regression testing: 131/597 tests failed ⚠.

The first 10 failing tests are:
autoanalyze [setup failure]
logfill_logput_window_generated
phys_rep_perf
analyze_exit_immediately
snapisol_partial_index_off_generated
snapisol_noearly_generated
snap_ha_retry_newsi_generated
fdb_compat
ddl_csc2
simple_remsql_whitelist_generated

@morgando morgando marked this pull request as ready for review January 3, 2025 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants