discord9
a4d61bcaf1
fix(flow): batch builder with type ( #5195 )
...
* fix: typed builder
* chore: clippy
* chore: rename
* fix: unit tests
* refactor: per review
2024-12-19 09:16:56 +00:00
discord9
2d6f63a504
feat: show flow's mem usage in INFORMATION_SCHEMA.FLOWS ( #4890 )
...
* feat: add flow mem size to sys table
* chore: rm dup def
* chore: remove unused variant
* chore: minor refactor
* refactor: per review
2024-12-19 08:24:04 +00:00
Ning Sun
c9ad8c7101
feat: show create postgresql foreign table ( #5143 )
...
* feat: add show create table for pg in parser
* feat: implement show create table operation
* fix: adopt upstream changes
2024-12-18 15:15:55 +00:00
Ruihang Xia
f04d380259
fix: validate matcher op for __name__ in promql ( #5191 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-12-18 08:51:46 +00:00
Lei, HUANG
fa773cf480
fix(sqlness): enforce order in union tests ( #5190 )
...
Add ORDER BY clause to subquery union tests
Updated the SQL and result files for subquery union tests to include an ORDER BY clause, ensuring consistent result ordering. This change aligns with the test case from the DuckDB repository.
2024-12-18 08:24:15 +00:00
dennis zhuang
e662c241e6
feat: impl label_join and label_replace for promql ( #5153 )
...
* feat: impl label_join and label_replace for promql
* chore: style
* fix: dst_label is eqauls to src_label
* fix: forgot to sort the results
* fix: processing empty source label
2024-12-18 06:35:45 +00:00
Lanqing Yang
266919c226
fix: display inverted and fulltext index in show index ( #5169 )
2024-12-18 06:10:59 +00:00
discord9
421088a868
test: sqlness upgrade compatibility tests ( #5126 )
...
* feat: simple version switch
* chore: remove debug print
* chore: add common folder
* tests: add drop table
* feat: pull versioned binary
* chore: don't use native-tls
* chore: rm outdated docs
* chore: new line
* fix: save old bin dir
* fix: switch version restart all node
* feat: use etcd
* fix: wait for election
* fix: normal sqlness
* refactor: hashmap for bin dir
* test: past 3 major version compat crate table
* refactor: allow using without setup etcd
2024-12-17 07:00:02 +00:00
Yingwen
bfc777e6ac
fix: deletion between two put may not work in last_non_null mode ( #5168 )
...
* fix: deletion between rows with the same key may not work
* test: add sqlness test case
* chore: comments
2024-12-17 04:01:32 +00:00
discord9
043d0bd7c2
test: flow rebuild ( #5162 )
...
* tests: rebuild flow
* tests: more rebuild
* tests: restart
* chore: drop clean
2024-12-16 12:25:23 +00:00
Ruihang Xia
54698325b6
feat: introduce SKIPPING index (part 1) ( #5155 )
...
* skip index parser
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* wip: sqlness
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* impl show create part
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add empty line
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* change keyword to SKIPPING INDEX
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* rename local variables
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-12-16 09:21:00 +00:00
Lin Yihai
f82af15eba
feat: Add vector_scalar_mul function. ( #5166 )
2024-12-16 06:46:38 +00:00
Niwaka
358d5e1d63
fix: support alter table ~ add ~ custom_type ( #5165 )
2024-12-15 09:05:29 +00:00
Niwaka
a8012147ab
feat: support push down IN filter ( #5129 )
...
* feat: support push down IN filter
* chore: move tests to prune.sql
2024-12-11 13:46:23 +00:00
Yohan Wal
1a8e77a480
test: part of parser test migrated from duckdb ( #5125 )
...
* test: update test
* fix: fix test
2024-12-11 09:28:13 +00:00
Zhenchi
e1e39993f7
feat(vector): add scalar add function ( #5119 )
...
* refactor: extract implicit conversion helper functions of vector
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* feat(vector): add scalar add function
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix fmt
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2024-12-11 09:25:56 +00:00
Yingwen
2fcb95f50a
fix!: fix regression caused by unbalanced partitions and splitting ranges ( #5090 )
...
* feat: assign partition ranges by rows
* feat: balance partition rows
* feat: get uppoer bound for part nums
* feat: only split in non-compaction seq scan
* fix: parallel scan on multiple sources
* fix: can split check
* feat: scanner prepare by request
* feat: remove scan_parallelism
* docs: upate docs
* chore: update comment
* style: fix clippy
* feat: skip merge and dedup if there is only one source
* chore: Revert "feat: skip merge and dedup if there is only one source"
Since memtable won't do dedup jobs
This reverts commit 2fc7a54b11 .
* test: avoid compaction in sqlness window sort test
* chore: do not create semaphore if num partitions is enough
* chore: more assertions
* chore: fix typo
* fix: compaction flag not set
* chore: address review comments
2024-12-09 12:50:57 +00:00
dennis zhuang
903da8f4cb
fix: show create table doesn't quote option keys which contains dot ( #5108 )
...
* fix: show create table doesn't quote option keys which contains dot
* fix: compile
2024-12-09 03:27:46 +00:00
discord9
8b944268da
feat: ttl=0/instant/forever/humantime&ttl refactor ( #5089 )
...
* feat: ttl zero filter
* refactor: use TimeToLive enum
* fix: unit test
* tests: sqlness
* refactor: Option<TTL> None means UNSET
* tests: sqlness
* fix: 10000 years --> forever
* chore: minor refactor from reviews
* chore: rename back TimeToLive
* refactor: split imme request from normal requests
* fix: use correct lifetime
* refactor: rename immediate to instant
* tests: flow sink table default ttl
* refactor: per review
* tests: sqlness
* fix: ttl alter to instant
* tests: sqlness
* refactor: per review
* chore: per review
* feat: add db ttl type&forbid instant for db
* tests: more unit test
2024-12-06 09:20:42 +00:00
Ruihang Xia
f9ebb58a12
fix: put PipelineChecker at the end ( #5092 )
...
fix: put PipelineChecker in the end
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-12-06 02:10:17 +00:00
dennis zhuang
ff4c153d4b
test: adds sqlness test for TTL ( #5063 )
...
* test: adds sqlness test for TTL
* chore: restart cluster
* fix: typo
* test: adds database TTL with metric engine tables
2024-12-03 11:32:40 +00:00
Ning Sun
bcadce3988
chore: remove openssl deps ( #5079 )
...
* chore: remove openssl deps
* ci: add ci task to check blacklisted dependencies
2024-12-02 07:12:15 +00:00
discord9
d931389a4c
fix(flow): minor fix about count(*)&sink keyword ( #5061 )
...
* fix: SiNk
* fix: sink&count(*)
* tests: SiNk
* refactor: per review
2024-11-29 03:06:27 +00:00
Lanqing Yang
8bdef776b3
fix: allow physical region alter region options ( #5046 )
...
allow physical region alter region options
2024-11-27 08:24:34 +00:00
Zhenchi
a6571d3392
chore: bump version to 0.10.0 ( #5040 )
...
* chore: bump version to 0.10.0
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix sqlness version regex
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2024-11-22 03:56:25 +00:00
Yohan Wal
1578c004b0
fix: prepare param mismatch ( #5025 )
...
* fix: prepare param mismatch
* test: clear state
* fix: minus 1
2024-11-22 02:31:53 +00:00
Yohan Wal
5f8d849981
feat: alter database ttl ( #5035 )
...
* feat: alter databaset ttl
* fix: make clippy happy
* feat: add unset database option
* fix: happy ci
* fix: happy clippy
* chore: fmt toml
* fix: fix header
* refactor: introduce `AlterDatabaseKind`
* chore: apply suggestions from CR
* refactor: add unset database option support
* test: add unit tests
* test: add sqlness tests
* feat: invalidate schema name value cache
* Apply suggestions from code review
* chore: fmt
* chore: update error messages
* test: add more test cases
* test: add more test cases
* Apply suggestions from code review
* chore: apply suggestions from CR
---------
Co-authored-by: WenyXu <wenymedia@gmail.com >
2024-11-21 12:41:41 +00:00
Weny Xu
14d997e2d1
feat: add unset table options support ( #5034 )
...
* feat: add unset table options support
* test: add tests
* chore: update greptime-proto
* chore: add comments
2024-11-21 03:52:56 +00:00
Zhenchi
0aab68c23b
feat(vector): add conversion between vector and string ( #5029 )
...
* feat(vector): add conversion between vector and string
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix sqlness
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* address comments
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2024-11-20 08:42:00 +00:00
Zhenchi
db345c92df
feat(vector): remove simsimd and use nalgebra instead ( #5027 )
...
* feat(vector): remove `simsimd` and use `nalgebra` instead
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* keep thing simple
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2024-11-20 06:57:10 +00:00
Yohan Wal
55ced9aa71
refactor: split up different stmts ( #4997 )
...
* refactor: set and unset
* chore: error message
* fix: reset Cargo.lock
* Apply suggestions from code review
Co-authored-by: jeremyhi <jiachun_feng@proton.me >
* Apply suggestions from code review
Co-authored-by: Weny Xu <wenymedia@gmail.com >
---------
Co-authored-by: jeremyhi <jiachun_feng@proton.me >
Co-authored-by: Weny Xu <wenymedia@gmail.com >
2024-11-20 06:02:51 +00:00
discord9
4d8fe29ea8
feat: CREATE OR REPLACE FLOW ( #5001 )
...
* feat: Replace flow
* refactor: better show create flow&tests: better check
* tests: sqlness result update
* tests: unit test for update
* refactor: cmp with raw bytes
* refactor: rename
* refactor: per review
2024-11-19 08:44:57 +00:00
dennis zhuang
0dd02e93cf
feat: make greatest supports timestamp and datetime types ( #5005 )
...
* feat: make greatest supports timestamp and datetime types
* chore: style
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
* refactor: greatest with gt_time_types macro
---------
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
2024-11-19 07:01:24 +00:00
Zhenchi
73e6bf399d
test: reduce round precision to avoid platform diff ( #5013 )
...
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2024-11-18 16:37:15 +00:00
discord9
4402f638cd
fix: distinct respect in range ( #5015 )
...
* fix: distinct respect in range
* tests: sqlness
* chore: newline
2024-11-18 12:11:07 +00:00
Yohan Wal
2b72e66536
test: subquery test migrated from duckdb ( #4985 )
...
* test: subquery test migrated from duckdb
* test: update test
* test: skip unsupported features and add sources
2024-11-18 08:37:06 +00:00
Lanqing Yang
485782af51
fix: ensure Create Or Replace and If Not Exist cannot coexist in create view ( #5003 )
...
ensure Create Or Replace and If Not Exist cannot coexist in create view statement
2024-11-17 07:08:30 +00:00
Lanqing Yang
cdba7b442f
feat: implement statement/execution timeout session variable ( #4792 )
...
* support set and show on statement/execution timeout session variables.
* implement statement timeout for mysql read, and postgres queries
* add mysql test with max execution time
2024-11-15 06:19:39 +00:00
Zhenchi
408013c22b
feat: add distance functions ( #4987 )
...
* feat: add distance functions
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: f64 instead
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* address comments
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* tiny adjust
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2024-11-14 10:18:58 +00:00
discord9
35898f0b2e
test: more sqlness tests for flow ( #4988 )
...
* tests: more flow testcase
* tests(WIP): more tests
* tests: more flow tests
* test: wired regex for sqlness
* refactor: put blog&example to two files
2024-11-14 07:40:14 +00:00
Yohan Wal
aa6c2de42a
refactor: use UNSET instead of enable ( #4983 )
...
* refactor: use UNSERT instead of enable
* fix: test
* chore: comment
2024-11-13 08:28:20 +00:00
discord9
175fddb3b5
fix: alter table add column id alloc mismatch ( #4972 )
...
* fix: alter table add column id alloc mismatch
* chore: remove debug code
* chore: typos
* chore: error variant
* chore: more checks for invariant
* refactor: better check&explain
* fix: exist column metadata correct
* chore: remove unused error variant
2024-11-13 07:02:35 +00:00
Lanqing Yang
3bbcde8e58
feat: support alter twcs compaction options ( #4965 )
...
support alter twcs compression options
2024-11-13 06:27:32 +00:00
Zhenchi
d616bd92ef
feat: introduce vector type ( #4964 )
...
* feat: introduce vector type
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* test: fix prepared stmt
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* test: add grpc test
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* test: parse vector value
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* test: column to row
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* test: sqlness
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: merge issue
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* refactor: add check for bytes size
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* Update tests/cases/standalone/common/types/vector/vector.sql
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
* chore: update proto
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: simplify cargo
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: address comment
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
2024-11-12 08:28:44 +00:00
Yohan Wal
84aa5b7b22
feat: alter fulltext options ( #4952 )
...
* feat(WIP): alter fulltext index
Co-Authored-By: irenjj <renj.jiang@gmail.com >
* feat: alter column fulltext option
Co-Authored-By: irenjj <renj.jiang@gmail.com >
* chore: fmt
* test: add unit and integration tests
Co-Authored-By: irenjj <renj.jiang@gmail.com >
* test: update sqlness test
* chore: new line
* chore: lock file update
* chore: apply review comments
* test: update sqlness test
* test: update sqlness test
* fix: convert
* chore: apply review comments
* fix: toml fmt
* fix: tests
* test: add test for mito
* chore: error message
* fix: test
* fix: test
* fix: wrong comment
* chore: change proto rev
* chore: apply review comments
* chore: apply review comments
* chore: fmt
---------
Co-authored-by: irenjj <renj.jiang@gmail.com >
2024-11-12 03:04:04 +00:00
Zhenchi
6248a6ccf5
feat(index): support SQL to specify inverted index columns ( #4929 )
...
* feat(index): support building inverted index for the field column
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* feat(index): support SQL to specify inverted index columns
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* test: fix sqlness
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: consider compatibility
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* polish
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* compatibility
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: ignore case
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* refactor: reduce dup
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: clippy
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2024-11-11 08:06:23 +00:00
Kaifeng Zheng
1a02fc31c2
fix: json_path_exists null results ( #4881 )
...
* fix: result of nulls
* update test result
* fix null behaviors, add null tests
* update NULL tests
* error handler when parsing json_path
* change the logic to: items' datatype in the input arrays are all the same.
* remove a comment
* refactor: better logic
* drop unnecessary err check
* added an error test case
2024-11-08 03:01:45 +00:00
Lei, HUANG
5d20acca44
fix: round euclidean result in sqlness ( #4956 )
2024-11-07 02:29:49 +00:00
dennis zhuang
305767e226
fix: bugs introduced by alter table options ( #4953 )
...
* fix: ChangeTableOptions display
* fix: partition number disappear after altering table options
* Update src/table/src/metadata.rs
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
---------
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
2024-11-06 19:56:49 +00:00
Ning Sun
a8b426aebe
feat: add more geo functions ( #4888 )
...
* chore: add type conversion for array types
* feat: add h3_cells_contains
* refactor: resolve lint issues
* feat: add sphere distance function
* feat: euclidean distance between h3 centroids
* test: round float number
* feat: add more geospatial functions
* test: add tests for geometry functions
* refactor: move wkt function to dedicated module
* feat: add st_area
* refactor: only allow sphere distance between points
2024-11-05 03:44:25 +00:00