Skip to content

bug: query error when stream_consume_batch_size_hint is not 0 #19073

@zhyass

Description

@zhyass
root@localhost:8000/default/default> create table t(a int);

create table t(a int)

root@localhost:8000/default/default> set stream_consume_batch_size_hint =2;

set
  stream_consume_batch_size_hint = 2

root@localhost:8000/default/default> insert into t values(1);

insert into
  t
values
(1)

╭─────────────────────────╮
│ number of rows inserted │
│          UInt64         │
├─────────────────────────┤
│                       1 │
╰─────────────────────────╯
1 row written in 0.065 sec. Processed 1 row, 5 B (15.38 rows/s, 76 B/s)

root@localhost:8000/default/default> insert into t values(2),(3);

insert into
  t
values
(2),
(3)

╭─────────────────────────╮
│ number of rows inserted │
│          UInt64         │
├─────────────────────────┤
│                       2 │
╰─────────────────────────╯
2 rows written in 0.061 sec. Processed 2 rows, 9 B (32.79 rows/s, 147 B/s)

root@localhost:8000/default/default> select * from t;
error: APIError: QueryFailed: [3902]MAX_BATCH_SIZE parameter only supported for STREAM tables

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: something isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions