Weny Xu
89da42dbc1
refactor: refactor frontend cache ( #3912 )
...
* feat: implement the `TableCache`
* refactor: use `TableCache`
* refactor: replace `TableFlowManager` with `TableFlownodeSetCache`
* refactor: introduce cache crate
* chore: add comments
* chore: update comments
* chore: apply suggestions from CR
* chore: rename `cache_invalidator` to `local_cache_invalidator`
* chore(fuzz): set `acquire_timeout` to 30s
2024-05-11 09:58:18 +00:00
Ruihang Xia
115c74791d
build(deps): bump snafu to 0.8 ( #3911 )
...
* change Cargo.toml
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* global replace
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* handle alias in script engine
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix clippy
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-05-10 13:36:25 +00:00
Weny Xu
aa2934b422
docs: run fuzz tests in dev mode & disable sanitizer ( #3871 )
...
doc: run fuzz tests in dev mode & disable sanitizer
2024-05-07 14:15:07 +08:00
Weny Xu
f6e2039eb8
test: introduce unstable fuzz create table test ( #3788 )
...
* feat: implement unstable_fuzz_create_table_standalone
* chore: use drop database
* docs: update docs
* chore: add ci config
* chore: add feature gate
* fix: fix clippy
* chore: update ci
* Apply suggestions from code review
* feat: reduce num
* Apply suggestions from code review
* chore: apply suggestions from CR
* Apply suggestions from code review
* chore: reduce `wait_timeout` in health check
* Update .env.example
* refactor: use `init_greptime_connections_via_env`
* refactor: use `init_greptime_connections_via_env`
---------
Co-authored-by: tison <wander4096@gmail.com >
2024-05-01 06:08:49 +00:00
Yohan Wal
573d369f77
feat(fuzz): add insert logical table target ( #3842 )
...
* refactor: let upper caller control whether to omit column list
* feat(fuzz): add insert logical table target
* ci: add fuzz_insert_logical_table ci cfg
2024-05-01 03:48:51 +00:00
Yohan Wal
f29aebf89f
feat(fuzz): add alter logical table target ( #3818 )
...
* feat(fuzz): add alter logical table target
* chore(ci): add fuzz_alter_logical_table ci cfg
2024-04-28 06:40:37 +00:00
Yohan Wal
934c7e3fef
feat(fuzz): add create logical table target ( #3756 )
...
* feat(fuzz): add create logical table target
* fix: drop physical table after fuzz test
* fix: remove backticks of table name in with clause
* fix: create physical and logical table properly
* chore: update comments
* chore(ci): add fuzz_create_logical_table ci cfg
* fix: create one logical table once a time
* fix: avoid possible duplicate table and column name
* feat: use hard-code physical table
* chore: remove useless phantom
* refactor: create logical table with struct initialization
* chore: suggested changes and corresponding test changes
* chore: clean up
2024-04-26 09:09:08 +00:00
Ruihang Xia
df01ac05a1
feat: add validate method to CreateExpr ( #3772 )
...
* feat: add validate method to CreateExpr
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add sqlness reproducer
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* verify region create request
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix existing test
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add tailing empty line
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add more validation
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix typo
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* disable metric table fuzz
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* minor refactor
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-04-24 07:29:10 +00:00
Ruihang Xia
0c5f4801b7
build: update toolchain to nightly-2024-04-18 ( #3740 )
...
* chore: update toolchain to nightly-2024-04-17
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix test clippy
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix ut
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update fuzz test
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update to nightly-2024-04-18
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add document
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update CI
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* avoid unnecessary allow clippy attrs
Signed-off-by: tison <wander4096@gmail.com >
* help the compiler find the clone is unnecessary and make clippy happy
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Signed-off-by: tison <wander4096@gmail.com >
Co-authored-by: tison <wander4096@gmail.com >
2024-04-19 05:42:34 +00:00
Yohan Wal
ffc8074556
feat(fuzz): enable create-if-not-exists option ( #3732 )
2024-04-18 02:50:57 +00:00
Weny Xu
2398918adf
feat(fuzz): support to create metric table ( #3617 )
...
Co-authored-by: tison <wander4096@gmail.com >
2024-04-09 06:00:04 +00:00
Yohan Wal
682b04cbe4
feat(fuzz): add create database target ( #3675 )
...
* feat(fuzz): add create database target
* chore(ci): add fuzz_create_database ci cfg
2024-04-09 01:33:29 +00:00
dennis zhuang
87e0189e58
fix!: columns table in information_schema misses some columns ( #3639 )
...
* fix: columns table in information_schema misses some columns
* fix: test_information_schema_dot_columns
* fix: fuzz test
* feat: adds srs_id and refactor some columns with constant vector
* fix: test_information_schema_dot_columns
* chore: update comment
Co-authored-by: JeremyHi <jiachun_feng@proton.me >
* build(deps): bump h2 from 0.3.24 to 0.3.26 (#3642 )
Bumps [h2](https://github.com/hyperium/h2 ) from 0.3.24 to 0.3.26.
- [Release notes](https://github.com/hyperium/h2/releases )
- [Changelog](https://github.com/hyperium/h2/blob/v0.3.26/CHANGELOG.md )
- [Commits](https://github.com/hyperium/h2/compare/v0.3.24...v0.3.26 )
---
updated-dependencies:
- dependency-name: h2
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* build(deps): bump whoami from 1.4.1 to 1.5.1 (#3643 )
Bumps [whoami](https://github.com/ardaku/whoami ) from 1.4.1 to 1.5.1.
- [Changelog](https://github.com/ardaku/whoami/blob/v1/CHANGELOG.md )
- [Commits](https://github.com/ardaku/whoami/compare/v1.4.1...v1.5.1 )
---
updated-dependencies:
- dependency-name: whoami
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* feat: adding victoriametrics remote write (#3641 )
* feat: adding victoria metrics remote write
* test: add e2e tests for prom and vm remote writes
* fix: construct correct pk list with pre-existing pk (#3614 )
* fix: construct correct pk list with pre-existing pk
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update UT
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* test(sqlness): release databases after tests (#3648 )
* refactor: rename Greptime_Type to Greptime_type
---------
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: JeremyHi <jiachun_feng@proton.me >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ning Sun <sunng@protonmail.com >
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: Weny Xu <wenymedia@gmail.com >
2024-04-08 03:20:49 +00:00
niebayes
d33435fa84
feat: introduce wal benchmarker ( #3446 )
...
* feat: introduce wal benchmarker
* chore: add log store metrics
* chore: add some comments to wal benchmarker
* fix: ci
* chore: add more metrics for kafka logstore
* chore: add more timers for kafka logstore
* chore: add more configs
* chore: move humantime to common dependencies
* refactor: refactor wal benchmarker
* fix: apply suggestions from code review
* doc: add a simple README for wal benchmarker
* fix: Cargo.toml
* fix: clippy
* chore: rename wal.rs to wal_bench.rs
* fix: compile
2024-04-03 03:16:05 +00:00
Weny Xu
e4333969b4
feat(fuzz): add alter table target ( #3503 )
...
* feat(fuzz): validate semantic type of column
* feat(fuzz): add fuzz_alter_table target
* feat(fuzz): validate columns
* chore(ci): add fuzz_alter_table ci cfg
2024-03-13 14:11:47 +00:00
Zhenchi
b55905cf66
feat(fuzz): add insert target ( #3499 )
...
* fix(common-time): allow building nanos timestamp from parts split from i64::MIN
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* feat(fuzz): add insert target
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: cleanup cargo.toml and polish comments
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2024-03-13 10:03:03 +00:00
Weny Xu
0a4444a43a
feat(fuzz): validate columns ( #3485 )
2024-03-11 11:34:50 +00:00
Weny Xu
3f3ef2e7af
refactor: separate the quote char and value ( #3455 )
...
refactor: use ident instead of string
2024-03-07 08:24:09 +00:00
Weny Xu
a218f12bd9
test: add fuzz test for create table ( #3441 )
...
* feat: add create table fuzz test
* chore: add ci cfg for fuzz tests
* refactor: remove redundant nightly config
* chore: run fuzz test in debug mode
* chore: use ubuntu-latest
* fix: close connection
* chore: add cache in fuzz test ci
* chore: apply suggestion from CR
* chore: apply suggestion from CR
* chore: refactor the fuzz test action
2024-03-07 06:51:19 +00:00
Ruihang Xia
020635063c
feat: implement multi-dim partition rule ( #3409 )
...
* generate expr rule
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* implement show create for new partition rule
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* implement row spliter
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix: fix failed tests
Signed-off-by: WenyXu <wenymedia@gmail.com >
* chore: fix lint issues
Signed-off-by: WenyXu <wenymedia@gmail.com >
* chore: ignore tests for deprecated partition rule
* chore: remove unused partition rule tests setup
* test(sqlness): add basic partition tests
* test(multi_dim): add basic find region test
* address CR comments
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Signed-off-by: WenyXu <wenymedia@gmail.com >
Co-authored-by: WenyXu <wenymedia@gmail.com >
2024-03-05 11:39:15 +00:00
SteveLauC
e9a2b0a9ee
chore: use workspace-wide lints ( #3352 )
...
* chore: use workspace-wide lints
* respond to review
2024-02-22 01:01:10 +00:00
Weny Xu
f99b08796d
feat: add insert/select generator & translator ( #3240 )
...
* feat: add insert into expr generator & translator
* feat: add select expr generator & translator
* chore: apply suggestions from CR
* fix: fix unit tests
2024-01-26 02:59:17 +00:00
Weny Xu
673a4bd4ef
feat: add pg create alter table expr translator ( #3206 )
...
* feat: add pg create table expr translator
* feat: add pg alter table expr translator
* refactor: refactor MappedGenerator
* chore: apply suggestions from CR
2024-01-25 08:00:42 +00:00
Weny Xu
364754afa2
feat: add create alter table expr translator ( #3203 )
...
* feat: add create table expr translator
* feat: add alter table expr translator
* refactor: expose mod
* refactor: expr generator
* chore: ignore typos check for lorem_words
* feat: add string map helper functions
* chore: remove unit tests
2024-01-23 02:53:42 +00:00
Weny Xu
440cd00ad0
feat(tests-fuzz): add CreateTableExprGenerator & AlterTableExprGenerator ( #3182 )
...
* feat(tests-fuzz): add CreateTableExprGenerator
* refactor: move Column to root of ir mod
* feat: add AlterTableExprGenerator
* feat: add Serialize and Deserialize derive
* chore: refactor the AlterExprGenerator
2024-01-19 09:39:28 +00:00
Weny Xu
7a1b856dfb
feat: add tests-fuzz crate ( #3173 )
2024-01-16 09:02:09 +00:00