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

bug: using alter source add columns on a table with conn will panic. #14917

Closed
Rossil2012 opened this issue Feb 1, 2024 · 0 comments · Fixed by #14922
Closed

bug: using alter source add columns on a table with conn will panic. #14917

Rossil2012 opened this issue Feb 1, 2024 · 0 comments · Fixed by #14922
Assignees
Labels
type/bug Something isn't working
Milestone

Comments

@Rossil2012
Copy link
Contributor

Describe the bug

Described in the title. I suggest to reject the statement when user applies alter source on a table with conn.
cc @tabVersion.

Error message/log

ERROR:  Panicked when handling the request: should contains only one statement: ExactlyOneError[RemainingIter: IntoIter([])]
This is a bug. We would appreciate a bug report at:
  https://github.com/risingwavelabs/risingwave/issues/new?labels=type%2Fbug&template=bug_report.yml
server closed the connection unexpectedly
        This probably means the server terminated abnormally
        before or while processing the request.
The connection to the server was lost. Attempting reset: Succeeded.

To Reproduce

CREATE TABLE src (v INT) WITH (
    connector = 'datagen',
    fields.v.kind = 'sequence',
    fields.v.start = '1',
    fields.v.end  = '10',
    datagen.rows.per.second='15',
    datagen.split.num = '1'
) FORMAT PLAIN ENCODE JSON;
ALTER SOURCE src ADD COLUMN b int;

Expected behavior

Rejected since the source is created with create table.

How did you deploy RisingWave?

./risedev d

The version of RisingWave

PostgreSQL 9.5.0-RisingWave-1.7.0-alpha (unknown)

Additional context

No response

@Rossil2012 Rossil2012 added the type/bug Something isn't working label Feb 1, 2024
@Rossil2012 Rossil2012 self-assigned this Feb 1, 2024
@github-actions github-actions bot added this to the release-1.7 milestone Feb 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant