Skip to content

Wrong Number of Rows is Presented When Using LIMIT with LT JOIN Queries #164

Open

Description

@superichmann

On my example actual rows amount is 1300.
image

Activity

  1. changed the title [-]Wrong Number of Rows When Using LIMIT with LT JOIN Queries[/-] [+]Wrong Number of Rows is Presented When Using LIMIT with LT JOIN Queries[/+] on Jun 15, 2023
  2. insmac commented on Jun 15, 2023

    @insmac
    Contributor

    Hey @superichmann, thanks for submitting the issue.

    Could you specify the following:

    • The query in question
    • What is the value of count property in /exec XHR API response for this query?
    • What is your system? (also locale - language)
  3. superichmann commented on Jun 23, 2023

    @superichmann
    Author

    reproduce:

    1. Download&Install QDB 7.2 for windows
    2. Download this dataset
    3. import into qdb, default settings
    4. run this
    CREATE TABLE 'train' (
      id DOUBLE,
      date TIMESTAMP,
      store_nbr DOUBLE,
      family SYMBOL,
      sales DOUBLE,
      onpromotion DOUBLE
    ) timestamp(date);
    
    1. run this
      INSERT INTO train SELECT * FROM train.csv
    2. run this
      SELECT * FROM (train d LT JOIN (train c LT JOIN (train b LT JOIN (train a WHERE a.date<'2017-08-01' and a.date>'2017-06-15' AND a.family='HOME AND KITCHEN I') ON family WHERE b.date<'2017-08-01' and b.date>'2017-06-15' AND b.family='HOME AND KITCHEN I') ON family WHERE c.date<'2017-08-01' and c.date>'2017-06-15' AND c.family='HOME AND KITCHEN I') ON family WHERE d.date<'2017-08-01' and d.date>'2017-06-15' AND d.family='HOME AND KITCHEN I') LIMIT 3,99999999999999999
    3. observe selected rows amount
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    web-consoleIssues relevant to "web-console" package

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions