Skip to content

bug: tuple type parser is incorrect #10559

@andylokandy

Description

@andylokandy

Search before asking

  • I had searched in the issues and found no similar issues.

Version

e98891e

What's Wrong?

In TypeName::Tuple { fields_type, fields_name}, the fields_type and fields_name may have different number of elements.

How to Reproduce?

> create table t (a tuple(b int, int))
> show create table t
+-------+----------------------------------------------------------+
| Table | Create Table                                             |
+-------+----------------------------------------------------------+
| t     | CREATE TABLE `t` (\n  `a` TUPLE(B INT32,)\n) ENGINE=FUSE |
+-------+----------------------------------------------------------+
> insert into table t values ((1, 1))
(1105, 'Code: 1104, displayText = assertion failed: `(left == right)`\n  left: `2`,\n right: `1`.')

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

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