feat: limit total rows copied in COPY TABLE FROM with LIMIT segment (#3910)

* feat: limit total rows copied in COPY TABLE FROM with LIMIT segment

* fmt

* disable default limit

* fix: check parse

* fix test, add error case

* fix: forbide LIMIT in database

* fix: only support LIMIT segment

* fix: simplify

* fix

* fix

* fix

* fix

* fix: test

* fix: change error info

* fix clippy

* fix: fix error msg

* fix test

* fix: test error info
This commit is contained in:
irenjj
2024-05-16 21:39:26 +08:00
committed by GitHub
parent 669a6d84e9
commit f93b5b19f0
10 changed files with 73 additions and 23 deletions
+1
View File
@@ -228,6 +228,7 @@ pub struct CopyTableRequest {
pub pattern: Option<String>,
pub direction: CopyDirection,
pub timestamp_range: Option<TimestampRange>,
pub limit: Option<u64>,
}
#[derive(Debug, Clone, Default)]