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

Error: Scalar doesn't exist #147

Open
vinay2897 opened this issue Jun 10, 2023 · 0 comments
Open

Error: Scalar doesn't exist #147

vinay2897 opened this issue Jun 10, 2023 · 0 comments

Comments

@vinay2897
Copy link

vinay2897 commented Jun 10, 2023

create table test (id String, data AggregateFunction(quantilesBFloat16(0.5), Float32));

I am trying to insert like this

await clickhouseClient
    .insert(
      `insert into test (id, data) VALUES ('1', (
        select quantilesBFloat16State(0.5)(
          arrayJoin(
            [toFloat32(1)]
          )
        )
      ))`,
    )
    .toPromise();

I am not sure if this is the right way to insert to AggregateFunction, getting this error

Error: Scalar `5268235327744482548_13959738211676547465` doesn't exist (internal bug): While processing __getScalar('5268235327744482548_13959738211676547465') AS constant_expression: While executing ValuesBlockInputFormat. (BAD_ARGUMENTS) (version 
23.4.2.11 (official build))

Node version - 18.16.0
Clickhouse server version - 23.4.2.11

@vinay2897 vinay2897 changed the title Cannot read all data. Bytes read: 6. Bytes expected: 8 Error: Scalar doesn't exist Jun 10, 2023
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

No branches or pull requests

1 participant