shuiyisong
c199604ece
feat: Loki remote write ( #4941 )
...
* chore: add debug loki remote write url
* chore: add decode snappy
* chore: format output
* feature: impl loki remote write
* fix: special labels deserialize
* chore: move result to folder
* chore: finish todo in loki write
* test: loki write
* chore: fix cr issue
* chore: fix cr issue
* chore: fix cr issue
* chore: update pre-commit config
* chore: fix cr issue
Co-authored-by: dennis zhuang <killme2008@gmail.com >
---------
Co-authored-by: dennis zhuang <killme2008@gmail.com >
2024-11-18 08:39:17 +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
Weny Xu
7c135c0ef9
feat: introduce DynamicTimeoutLayer ( #5006 )
...
* feat: introduce `DynamicTimeoutLayer`
* test: add unit test
* chore: apply suggestions from CR
* feat: add timeout option for cli
2024-11-18 07:10:40 +00:00
Weny Xu
9289265f54
fix: correct unset_maintenance_mode behavior ( #5009 )
2024-11-18 06:39:13 +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
Weny Xu
4b263ef1cc
fix: obsolete wal entires while opening a migrated region ( #4993 )
...
* fix: delete obsolete wal entrie while opening a migrated region
* chore: add logs
* chore: rust fmt
* fix: fix fuzz test
2024-11-15 10:55:22 +00:00
Weny Xu
08f59008cc
refactor: introduce MaintenanceModeManager ( #4994 )
...
* refactor: introduce MaintenanceModeManager
* chore: apply suggestions from CR
* chore: apply suggestions from CR
* chore: apply suggestions from CR
2024-11-15 07:15:22 +00:00
Yohan Wal
a2852affeb
chore: rename change to modify ( #5000 )
...
* chore: rename change to modify
* chore: proto rev
2024-11-15 06:58:26 +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
Lin Yihai
42bf7e9965
refactor: Avoid wrapping Option for CacheManagerRef ( #4996 )
2024-11-14 13:37:02 +00:00
discord9
a70b4d7eba
chore: update greptime-proto to e1070a ( #4992 )
...
* chore: update protot to e1070a
* fix: update proto usage
2024-11-14 11:59:00 +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
zyy17
22c8a7656b
chore: update cluster dashboard ( #4995 )
2024-11-14 10:18:50 +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
zyy17
1101e98651
refactor(grafana): update cluster dashboard ( #4980 )
2024-11-14 07:12:30 +00:00
zyy17
0089cf1b4f
fix: run install.sh error ( #4989 )
...
* fix: use '/bin/sh' shebang and remove function key word
* ci: check install.sh in nightly CI
2024-11-13 21:54:24 +00:00
dennis zhuang
d7c3c8e124
fix: physical table statistics info ( #4975 )
...
* fix: physical table statistics info
* refactor: is_physical_table
* fix: remove file
2024-11-13 14:29:44 +00:00
Yohan Wal
f4b9eac465
build(deps): switch to upstream jsonb ( #4986 )
...
chore: jsonb
2024-11-13 11:15:37 +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
Lei, HUANG
6afc4e778a
refactor(mito): tidy memtable stats ( #4982 )
...
* wip: share same WriteMetrics struct between different memtable implementations
* refactor: extract function to update memtable timestamp range
2024-11-13 06:57:27 +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
Weny Xu
3bf9981aab
refactor: support distinct JSON format and improve type conversions ( #4979 )
...
refactor: support distinct JSON format
2024-11-13 03:03:51 +00:00
Weny Xu
c47ad548a4
feat: refine region state checks and handle stalled requests ( #4971 )
...
* feat: refine region state checks and handle stalled requests
* test: add tests
* chore: apply suggestions from CR
* chore: apply suggestions from CR
* chore: add comments
2024-11-13 02:51:27 +00:00
Lin Yihai
0b6d78a527
refactor: consolidate DatanodeClientOptions ( #4966 )
...
refactor!: consolidate `DatanodeClientOptions`
2024-11-12 09:57:41 +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
cbf21e53a9
feat(puffin): apply range reader ( #4928 )
...
* wip
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* feat(puffin): apply range reader
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* refactor: read_vec reduce iteration
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* refactor: simplify rangereader for vec<u8>
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* test: add unit test
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix: toml format
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2024-11-12 02:36:38 +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
localhost
0e0c4faf0d
fix(otlp): replace otlp trace attr type from string to jsonb ( #4918 )
...
* chore: minor update
* chore: replace otlp trace attr type from string to jsonb
* chore: add new util file and remove useless code
* chore: add license header
* chore: remove unused error
* chore: adjust otlp traces column order
* chore: update test
* chore: minor fix
---------
Co-authored-by: shuiyisong <xixing.sys@gmail.com >
v0.10.0-nightly-20241111
2024-11-08 06:34:49 +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
Ruihang Xia
8efbafa538
feat: support filter with windowed sort ( #4960 )
...
* feat: support windowed sort with where condition
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix split logic
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* modify fuzz test to reflect logic change
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* feat: handle sort that wont preserving partition
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* clean up
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix typo
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix test case and add more cases
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-11-08 02:49:36 +00:00
Ruihang Xia
fcd0ceea94
fix: column already exists ( #4961 )
...
* fix: merge fetched logical metadata with existing cache
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix log acquire
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* Update src/metric-engine/src/engine/region_metadata.rs
Co-authored-by: Yingwen <realevenyag@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: Yingwen <realevenyag@gmail.com >
2024-11-07 13:25:05 +00:00
jeremyhi
22f31f5929
chore: paginated query region stats ( #4942 )
2024-11-07 03:01:12 +00:00
Lei, HUANG
5d20acca44
fix: round euclidean result in sqlness ( #4956 )
2024-11-07 02:29:49 +00:00
Yingwen
e3733344fe
fix: do not pick compacting/expired files ( #4955 )
2024-11-06 21:38:26 +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
dennis zhuang
22a662f6bc
docs: add TOC to readme ( #4949 )
...
* docs: add TOC to readme
* chore: remove some links
* chore: tweak TOC
* chore: tweak TOC
2024-11-06 13:27:00 +00:00
Lin Yihai
1431393fc8
fix: the region_stats API will return an error in instance test ( #4951 )
2024-11-06 13:15:48 +00:00
localhost
dfe8cf25f9
chore: add json path for pipeline ( #4925 )
...
* chore: add json path for pipeline
* chore: change jsonpath lib verion
* chore: remove useless doc
* chore: fix json path test
* chore: fix pipeline json path test
2024-11-06 11:44:59 +00:00
Weny Xu
cccd25ddbb
chore: fix typos in change log level doc ( #4948 )
...
chore: fix typos in change log level
2024-11-06 07:49:00 +00:00
discord9
ac387bd2af
fix: pprof ( #4938 )
2024-11-05 09:22:29 +00:00
LFC
2e9737c01d
refactor: pass LogicalPlan to promql execution interceptor ( #4937 )
2024-11-05 08:49:05 +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
jeremyhi
f3509fa312
chore: minor refactor for weighted choose ( #4917 )
...
* chore: minor refactor for weighted choose
* chore: by comment, remove the fast path of choose_multiple
2024-11-05 02:55:11 +00:00
Lei, HUANG
3dcd6b8e51
fix: database base ttl ( #4926 )
...
* main:
Add common-meta dependency and implement SchemaMetadataManager
- Introduce `common-meta` as a new dependency in `mito2`.
- Implement `SchemaMetadataManager` for managing schema-level metadata.
- Update `DatanodeBuilder` and `MitoEngine` to pass `KvBackendRef` for schema metadata management.
- Add `SchemaMetadataManager` to `RegionWorkerLoop` for compaction handling.
- Include `SchemaNameKey` usage in compaction-related code.
- Add `database_metadata_manager` module with `SchemaMetadataManager` struct and associated logic.
* fix/database-base-ttl:
Refactor metadata management and update compaction logic
- Remove `database_metadata_manager` and introduce `schema_metadata_manager`
- Update compaction logic to handle TTL based on schema metadata
- Adjust tests to use `schema_metadata_manager` for setting up schema options
- Fix engine creation in tests to pass `kv_backend` explicitly
- Remove unused imports and apply minor code cleanups
* fix/database-base-ttl:
Extend CREATE TABLE LIKE to inherit schema options
- Implement inheritance of database level options for CREATE TABLE LIKE
- Add schema options to SHOW CREATE TABLE output
- Refactor create_table_stmt to include schema_options in SQL generation
- Update error handling to include TableMetadataManagerSnafu
* fix/database-base-ttl:
Refactor error handling and remove schema dependency in table creation
- Replace expect with the ? operator for error handling in open_compaction_region
- Simplify create_logical_tables by removing catalog and schema name parameters
- Remove unnecessary schema retrieval and merging of schema options in create_table_info
- Clean up unused imports and redundant code
* fix/database-base-ttl:
Refactor error handling and update documentation comments
- Update comment to reflect retrieval of schema options instead of metadata
- Introduce new error type `GetSchemaMetadataSnafu` for schema metadata retrieval failures
- Implement error handling for schema metadata retrieval in `find_ttl` function
* fix: toml
* fix/database-base-ttl:
Refactor SchemaMetadataManager and adjust Cargo.toml dependencies
- Remove unused imports in schema_metadata_manager.rs
- Add conditional compilation for SchemaMetadataManager::new
- Update Cargo.toml to remove "testing" feature from common-meta dependency in main section and add it to dev-dependencies
* fix/database-base-ttl:
Fix typos in comments and function names across multiple modules
- Correct spelling of 'parallelism' in region_server, engine, and scan_region modules
- Amend typo in TODO comment from 'persisent' to 'persistent' in server module
- Update incorrect test query from 'versiona' to 'version' in federated module tests
* fix/database-base-ttl: Add schema existence check in StatementExecutor for CREATE TABLE operation
* fix/database-base-ttl: Add warning log for failed TTL retrieval in compaction region open function
* fix/database-base-ttl:
Refactor to use SchemaMetadataManagerRef in Datanode and MitoEngine
- Replace KvBackendRef with SchemaMetadataManagerRef across various components.
- Update DatanodeBuilder and MitoEngine to pass SchemaMetadataManagerRef instead of KvBackendRef.
- Adjust test cases to use get_schema_metadata_manager method for consistency.
2024-11-05 02:51:32 +00:00
Weny Xu
f221ee30fd
fix: violations of elided_named_lifetimes ( #4936 )
2024-11-04 10:52:39 +00:00
Yohan Wal
fb822987a9
refactor: refactor alter parser ( #4933 )
...
refactor: alter parser
2024-11-04 09:00:30 +00:00
Weny Xu
4ab6dc2825
feat: support to insert json data via grpc protocol ( #4908 )
...
* feat: support to insert json data via grpc protocol
* chore: handle error
* feat: introduce `prepare_rows`
* chore: fmt toml
* test: add row deletion test
* test: fix unit test
* chore: remove log
* chore: apply suggestions from CR
2024-11-04 08:55:47 +00:00
dennis zhuang
191755fc42
fix: data_length, index_length, table_rows in tables ( #4927 )
...
* fix: data_length, index_length, table_rows in tables
* feat: table stats only works for mito engine currently
* fix: tests
* fix: typo
* chore: log error when region_stats fails
2024-11-04 07:44:13 +00:00