Skip to content

Incorrect result of SQL keywords LIMIT #1883

Open
@Echo9573

Description

@Echo9573

The result of the SQL keywords LIMIT is incorrect. the reproducing procedure is shown as follows:

%%sqlflow
drop table if exists iris.train1;
create table energy.train1 as
select * from iris.train limit 0, 80;

drop table if exists energy.val1;
create table iris.val1 as
select * from iris.train limit 80, 90;

drop table if exists iris.test1;
create table iris.test1 as
select * from iris.train limit 90, 110;

The output is :

0 row affected
80 rows affected
0 row affected
30 rows affected
0 row affected
20 rows affected

Obviously, the result of iris.val1 is not correct, it should be 10 instead of 30.

Metadata

Metadata

Assignees

No one assigned

    Labels

    DataScienceThe issue about the application in data scienceDiDiThe issue publisher is from DidibugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions