Skip to content

[Bug]: table not created successful bug #3190

Closed

Description

@dengn

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Environment

- Version or commit-id (e.g. v0.1.0 or 8b23a93):e1319c52cf87b17a98008ae0dda79b72237d9ed1
- Hardware parameters:Mac M1 ARM 16GB Memory
- OS type:OSX
- Others:

Actual Behavior

table "cc" does not exist

Expected Behavior

COUNT(table1.pk)
4

Steps to Reproduce

CREATE TABLE `BB` (`col_char_key` char(1));
CREATE TABLE `CC` ( `pk` int, `col_datetime_key` datetime);
INSERT INTO `BB` VALUES ('X');
INSERT INTO `CC` VALUES (1,'2027-03-17 00:10:00'), (2,'2004-11-14 12:46:43');
SELECT COUNT(table1.pk) FROM CC table1 JOIN BB table3 JOIN CC table2
WHERE (table3.col_char_key < table2.col_datetime_key);

Additional information

No response

Activity

  1. added
    kind/bug
    on Jun 21, 2022
  2. added this to the v0.5.0 milestone on Jun 21, 2022
  3. ouyuanning commented on Jun 22, 2022

    @ouyuanning
    Contributor

    as rule : https://github.com/matrixorigin/docs/blob/main/design/column_naming_rules.md
    you can check sql:
    SELECT COUNT(table1.pk) FROM `CC` table1 JOIN `BB` table3 JOIN `CC` table2
    WHERE (table3.col_char_key < table2.col_datetime_key);

  4. dengn commented on Jun 22, 2022

    @dengn
    ContributorAuthor

    as rule : https://github.com/matrixorigin/docs/blob/main/design/column_naming_rules.md you can check sql: SELECT COUNT(table1.pk) FROM CC table1 JOIN BB table3 JOIN CC table2 WHERE (table3.col_char_key < table2.col_datetime_key);

    It's not clear in this document about the table name rule.

  5. domingozhang commented on Jun 22, 2022

    @domingozhang
    Contributor

    https://github.com/matrixorigin/docs/blob/main/design/column_naming_rules.md has been updated.
    In the parser of MO, all table name or column name with ` is case sensitive. In DML, it needs to be used with ` as well.

  6. added
    bvt
    on Jun 24, 2022
  7. aressu1985 commented on Jun 27, 2022

    @aressu1985
    Contributor

    fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bvtkind/bug

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions