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

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

Open
superichmann opened this issue Jun 15, 2023 · 2 comments
Labels
web-console Issues relevant to "web-console" package

Comments

@superichmann
Copy link

On my example actual rows amount is 1300.
image

@superichmann superichmann 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 Jun 15, 2023
@insmac
Copy link
Contributor

insmac commented Jun 15, 2023

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)

@superichmann
Copy link
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

@argshook argshook added the web-console Issues relevant to "web-console" package label Oct 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
web-console Issues relevant to "web-console" package
Projects
None yet
Development

No branches or pull requests

3 participants