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

Column types doesn't match schema types #3869

Closed
WenyXu opened this issue May 7, 2024 · 0 comments · Fixed by #3876
Closed

Column types doesn't match schema types #3869

WenyXu opened this issue May 7, 2024 · 0 comments · Fixed by #3876
Assignees
Labels
C-bug Category Bugs O-fuzz Found by fuzz tests

Comments

@WenyXu
Copy link
Member

WenyXu commented May 7, 2024

          Currently, I am testing the deletion of a row and have encountered a peculiar issue:
  • fuzz test case:
CREATE TABLE `esT`(
  `eT` TIMESTAMP(3) TIME INDEX,
  `eAque` BOOLEAN,
  `DoLOruM` INT,
  `repudiAndae` FLOAT,
  `ULLaM` BOOLEAN,
  `COnSECTeTuR` SMALLINT DEFAULT -31852,
  `DOLOrIBUS` FLOAT NOT NULL,
  `QUiS` SMALLINT NULL,
  `consEquatuR` BOOLEAN NOT NULL,
  `vERO` BOOLEAN,
  PRIMARY KEY(`repudiAndae`, `ULLaM`, `DoLOruM`)
) ENGINE = mito;
  • DDL rows:
INSERT INTO
  `esT` (
    `consEquatuR`,
    `eAque`,
    `eT`,
    `repudiAndae`,
    `DOLOrIBUS`
  )
VALUES
  (
    false,
    false,
    '+234049-06-04 01:11:41.163+0000',
    0.2339946,
    0.97377783
  ),
  (
    false,
    true,
    '-19578-12-20 11:45:59.875+0000',
    NULL,
    0.3535998
  );
  
  DELETE FROM
  `esT`
WHERE
  `DOLOrIBUS` = 0.73806196
  AND `consEquatuR` = false;
  • error:
Failed to execute query: DELETE FROM `esT` WHERE `DOLOrIBUS` = 0.73806196 AND `consEquatuR` = false err=0: Table operation error, at src/frontend/src/instance.rs:302:14
1: Failed to execute logical plan, at /Users/hanfox/Desktop/code/contribute/greptimedb/src/operator/src/statement.rs:269:14
2: Failed to create RecordBatch, at src/query/src/datafusion.rs:134:31
3: , at src/common/recordbatch/src/adapter.rs:254:55
4: External(0: , at src/common/recordbatch/src/adapter.rs:254:55
1: External(0: , at src/common/recordbatch/src/adapter.rs:254:55
1: External(External(0: Fail to create datafusion record batch, at /Users/hanfox/Desktop/code/contribute/greptimedb/src/common/recordbatch/src/recordbatch.rs:51:14
1: InvalidArgumentError("column types must match schema types, expected Float32 but found Int32 at column index 3")))))

At the same time, after I connect to port 4002 using mycli: select * from est;. The same error may also occur.

I don't understand why there would be a type exception issue in repudiAndae? From the insert sql, this input also appears to be correct.

@WenyXu

Originally posted by @hanxuanliang in #3867 (comment)

@WenyXu WenyXu added the C-bug Category Bugs label May 7, 2024
@evenyag evenyag added the O-fuzz Found by fuzz tests label May 7, 2024
@evenyag evenyag self-assigned this May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category Bugs O-fuzz Found by fuzz tests
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants