AntiTopQuark
b8070adc3a
feat: enhancement information_schema.flows ( #5623 )
...
* feat: enhancement information_schema.flows
* feat: enhancement information_schema.flows
* u
* u
* u
* u
* u
* u
* u
* u
* u
* update
* update
* update
* delete unused code
* u
* u
* Update src/flow/src/adapter/worker.rs
Co-authored-by: dennis zhuang <killme2008@gmail.com >
* Update src/common/meta/src/key/flow/flow_state.rs
Co-authored-by: dennis zhuang <killme2008@gmail.com >
* Update src/common/meta/src/key/flow/flow_info.rs
Co-authored-by: dennis zhuang <killme2008@gmail.com >
* Update src/common/meta/src/key/flow/flow_state.rs
Co-authored-by: dennis zhuang <killme2008@gmail.com >
* Update src/common/meta/src/key/flow/flow_info.rs
Co-authored-by: dennis zhuang <killme2008@gmail.com >
* u
* u
* u
* u
* u
* u
* chore: fix sqlness
* chore: update proto
* fix: remove date time
* fix: update result of information_schema test
---------
Co-authored-by: dennis zhuang <killme2008@gmail.com >
Co-authored-by: discord9 <discord9@163.com >
2025-03-11 15:08:10 +00:00
Weny Xu
0bd322a078
perf(prom): optimize label values query ( #5653 )
...
perf: optimize label values query
2025-03-10 13:20:47 +00:00
shuiyisong
448e588fa7
chore: improve /v1/jaeger/api/trace/{trace_id}'s resp ( #5663 )
...
* chore: improve jaeger trace api resp
* chore: fix timestamp type
* chore: fix timestamp type
* chore: complete more fields
* chore: change to microseconds
* chore: add empty check & span status code
* chore: minor update
* chore: update test
2025-03-07 04:31:42 +00:00
Ning Sun
37f8341963
feat: opentelemetry trace new data modeling ( #5622 )
...
* feat: include trace v1 encoding
* feat: add trace ingestion in inserter
* feat: add partition rules and index for trace_id
* chore: format
* chore: fmt
* fix: issue introduced with merge
* feat: adjust index and add integration test for v1
* refactor: remove comment key
* fix: update default value of skip index granularity
* fix: update default value of skip index granularity
* refactor: rename some functions
* feat: remove skipping index from span_id
* refactor: made span_id part of primary key for potential dedup purpose
* feat: move the special attribute resource_attribute.service.name to top level
---------
Co-authored-by: shuiyisong <113876041+shuiyisong@users.noreply.github.com >
2025-03-05 04:08:52 +00:00
LFC
dee76f0a73
refactor: simplify udf ( #5617 )
...
* refactor: simplify udf
* fix tests
2025-03-03 05:52:44 +00:00
Ning Sun
c9d70e0e28
refactor: add pipeline concept to OTLP traces and remove OTLP over gRPC ( #5605 )
2025-02-27 14:01:45 +00:00
Ruihang Xia
d69e93b91a
feat: support to generate json output for explain analyze in http api ( #5567 )
...
* impl
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* integration test
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* Update src/servers/src/http/hints.rs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* refactor: with FORMAT option for explain format
* lift some well-known metrics
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
Co-authored-by: Ning Sun <sunning@greptime.com >
2025-02-21 05:13:09 +00:00
LFC
f6f617d667
feat: submit node's cpu cores number to metasrv in heartbeat ( #5571 )
...
* feat: submit node's cpu cores number to metasrv in heartbeat
* update greptime-proto dep
2025-02-20 03:55:18 +00:00
yihong
aa8f119bbb
chore: format all toml files ( #5529 )
...
fix: format some cargo files
Signed-off-by: yihong0618 <zouzou0208@gmail.com >
2025-02-18 12:09:01 +00:00
zyy17
954310f917
feat: implement Jaeger query APIs ( #5452 )
...
* feat: implement jaeger query api
* test: add some unit tests
* test: add integration tests for jaeger query APIs
* refactor: parse tags from url parameters
* refactor: support to query traces by tags
* refactor: add limit parameter
* refactor: add jaeger query api metrics
* chore: add some comment docs and default limit value
* test: add more unit tests
* docs: add jaeger options in config docs
* refactor: code review
* wip
* refactor: use datafusion's dataframe APIs to query traces
* refactor: code review
* chore: format test cases
* refactor: add check_schema()
* chore: fix clippy errors and rename function name
* refactor: throw error when covert start_time and duration error
* chore: modify incorrect request type name
* chore: remove unecessary serde rename
* refactor: add some important comments
* refactor: add SPAN_KIND_PREFIX
* refactor: code review
2025-02-12 23:36:38 +00:00
Ruihang Xia
e22aa819be
feat: support server-side keep-alive for mysql and pg protocols ( #5496 )
...
* feat: support server-side keep-alive for mysql and pg protocols
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update config.md
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update config to use humantime for keep-alive configuration
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* chore: Update socket2 dependency
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2025-02-11 19:22:10 +00:00
Ning Sun
480b05c590
feat: pipeline dispatcher part 2: execution ( #5409 )
...
* fmt: correct format
* test: add negative tests
* feat: Add pipeline dispatching and execution output handling
* refactor: Enhance ingest function to correctly process original data values
custom table names during pipeline execution while optimizing the management of
transformed rows and multiple dispatched pipelines
* refactor: call greptime_identity with intermediate values
* fix: typo
* test: port tests to refactored apis
* refactor: adapt dryrun api call
* refactor: move pipeline execution code to a separated module
* refactor: update otlp pipeline execution path
* fmt: format imports
* fix: compilation
* fix: resolve residual issues
* refactor: address review comments
* chore: use btreemap as pipeline intermediate status trait modify
* refactor: update dispatcher to accept BTreeMap
* refactor: update identity pipeline
* refactor: use new input for pipeline
* chore: wip
* refactor: use updated prepare api
* refactor: improve error and header name
* feat: port flatten to new api
* chore: update pipeline api
* chore: fix transform and some pipeline test
* refactor: reimplement cmcd
* refactor: update csv processor
* fmt: update format
* chore: fix regex and dissect processor
* chore: fix test
* test: add integration test for http pipeline
* refactor: improve regex pipeline
* refactor: improve required field check
* refactor: rename table_part to table_suffix
* fix: resolve merge issue
---------
Co-authored-by: paomian <xpaomian@gmail.com >
2025-02-08 09:01:54 +00:00
Weny Xu
c80d2a3222
fix: introduce gc task for metadata store ( #5461 )
...
* fix: introduce gc task for metadata kvbackend
* refactor: refine KvbackendConfig
* chore: apply suggestions from CR
2025-02-06 12:12:43 +00:00
jeremyhi
fac22575aa
refactor!: unify the option names across all components ( #5457 )
...
* refactor: rename grpc options
* refactor: make the arg clearly
* chore: comments on server_addr
* chore: fix test
* chore: remove the store_addr alias
* refactor: cli option rpc_server_addr
* chore: keep store-addr alias
* chore: by comment
2025-02-06 06:37:14 +00:00
dennis zhuang
4259975be9
feat: support not-equal matcher for PromQL metric names ( #5385 )
...
* feat: make instant_query and range_query to supports not-equal matchers
* feat: impl query_metric_names
* feat: forgot some files and refactor
* chore: test and docs
* fix: typo
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
* refactor: parse_query
* chore: improve test
* fix: use current catalog to query information_schema
---------
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
2025-01-22 03:04:40 +00:00
yihong
24ea9cf215
feat: add show search_path for pg ( #5328 )
...
Signed-off-by: yihong0618 <zouzou0208@gmail.com >
2025-01-10 04:04:05 +00:00
Yingwen
c19a56c79f
feat!: Remove script crate and python feature ( #5321 )
...
* feat: exclude script crate
* chore: simplify feature
* feat: remove the script crate
* chore: remove python feature and some comments
* chore: fix warning
2025-01-08 12:11:53 +00:00
Kould
2ad50332cb
feat: impl COPY a query resultset to external file ( #5250 )
...
* feat: impl COPY a query resultset to external file
* chore: add more tests for parse `copy_table_to`
* chore: add more tests for parse `copy_table_to`
2025-01-06 04:32:51 +00:00
zyy17
5e88c80394
feat: introduce the Limiter in frontend to limit the requests by in-flight write bytes size. ( #5231 )
...
feat: introduct Limiter to limit in-flight write bytes size in frontend
2024-12-25 09:11:30 +00:00
Ruihang Xia
68dd2916fb
feat: logs query endpoint ( #5202 )
...
* define endpoint
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* planner
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update lock file
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add unit test
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix toml format
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* revert metric change
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* Update src/query/src/log_query/planner.rs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* fix compile
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* refactor and tests
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2024-12-24 06:21:19 +00:00
shuiyisong
9d7fea902e
chore: remove unused dep ( #5163 )
...
* chore: remove unused dep
* chore: remove more unused dep
2024-12-16 06:17:27 +00:00
localhost
e8e9526738
chore: pipeline dryrun api can currently receives pipeline raw content ( #5142 )
...
* chore: pipeline dryrun api can currently receives pipeline raw content
* chore: remove dryrun v1 and add test
* chore: change dryrun pipeline api body schema
* chore: remove useless struct PipelineInfo
* chore: update PipelineDryrunParams doc
* chore: increase code readability
* chore: add some comment for pipeline dryrun test
* Apply suggestions from code review
Co-authored-by: shuiyisong <113876041+shuiyisong@users.noreply.github.com >
* chore: format code
---------
Co-authored-by: shuiyisong <113876041+shuiyisong@users.noreply.github.com >
2024-12-12 11:47:21 +00:00
localhost
b8a78b7838
chore: decide tag column in log api follow table schema if table exists ( #5138 )
...
* chore: decide tag column in log api follow table schema if table exists
* chore: add more test for greptime_identity pipeline
* chore: change pipeline get_table function signature
* chore: change identity_pipeline_inner tag_column_names type
2024-12-12 09:01:21 +00:00
Ning Sun
3133f3fb4e
feat: add cursor statements ( #5094 )
...
* feat: add sql parsers for cursor operations
* feat: cursor operator
* feat: implement RecordBatchStreamCursor
* feat: implement cursor storage and execution
* test: add tests
* chore: update docstring
* feat: add a temporary sql rewrite for cast in limit
this issue is described in #5097
* test: add more sql for cursor integration test
* feat: reject non-select query for cursor statement
* refactor: address review issues
* test: add empty result case
* feat: address review comments
2024-12-06 09:32:22 +00:00
Ruihang Xia
7d8b256942
refactor: replace LogHandler with PipelineHandler ( #5096 )
...
* refactor: replace LogHandler with PipelineHandler
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* change method name
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* rename transform to insert
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-12-04 11:48:55 +00:00
Lei, HUANG
a51853846a
fix: schema cache invalidation ( #5067 )
...
* fix: use SchemaCache to locate database metadata
* main:
Refactor SchemaMetadataManager to use TableInfoCacheRef
- Replace TableInfoManagerRef with TableInfoCacheRef in SchemaMetadataManager
- Update DatanodeBuilder to pass TableInfoCacheRef to SchemaMetadataManager
- Rename error MissingCacheRegistrySnafu to MissingCacheSnafu in datanode module
- Adjust tests to use new mock_schema_metadata_manager with TableInfoCacheRef
* fix/schema-cache-invalidation: Add cache module and integrate cache registry into datanode
• Implement build_datanode_cache_registry function to create cache registry for datanode
• Integrate cache registry into datanode by modifying DatanodeBuilder and HeartbeatTask
• Refactor InvalidateTableCacheHandler to InvalidateCacheHandler and move to common-meta crate
• Update Cargo.toml to include cache as a dev-dependency for datanode
• Adjust related modules (flownode, frontend, tests-integration, standalone) to use new cache handler and registry
• Remove obsolete handler module from frontend crate
* fix: fuzz imports
* chore: add some doc for cahce builder functions
* refactor: change table info cache to table schema cache
* fix: remove unused variants
* fix fuzz
* chore: apply suggestion
Co-authored-by: Weny Xu <wenymedia@gmail.com >
* chore: apply suggestion
Co-authored-by: Weny Xu <wenymedia@gmail.com >
* fix: compile
---------
Co-authored-by: dennis zhuang <killme2008@gmail.com >
Co-authored-by: Weny Xu <wenymedia@gmail.com >
2024-12-03 10:44:29 +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
Lin Yihai
0b6d78a527
refactor: consolidate DatanodeClientOptions ( #4966 )
...
refactor!: consolidate `DatanodeClientOptions`
2024-11-12 09:57:41 +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 >
2024-11-08 06:34:49 +00:00
LFC
2e9737c01d
refactor: pass LogicalPlan to promql execution interceptor ( #4937 )
2024-11-05 08:49:05 +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
LFC
fd8eba36a8
refactor: make use of the "pre_execute" in sql execution interceptor ( #4875 )
...
* feat: dynamic definition of plugin options
* rebase
* revert
* fix ci
2024-10-30 09:16:46 +00:00
shuiyisong
32a0023010
chore: add schema urls to otlp logs ( #4876 )
...
* chore: add schema urls to otlp logs table
* chore: update meter-macros version to remove anymap warning
* chore: change span id and trace id to field
2024-10-25 03:45:24 +00:00
localhost
fcde0a4874
feat: Add functionality to the Opentelemetry write interface to extract fields from attr to top-level data. ( #4859 )
...
* chore: add otlp select
* chore: change otlp select
* chore: remove json path
* chore: format toml
* chore: change opentelemetry extract keys header name
* chore: add some doc and remove useless code and lib
* chore: make clippy happy
* chore: fix by pr comment
* chore: fix by pr comment
* chore: opentelemetry logs select key change some type default semantic type
2024-10-24 05:55:57 +00:00
localhost
4622412dfe
feat: add API to write OpenTelemetry logs to GreptimeDB ( #4755 )
...
* chore: otlp logs api
* feat: add API to write OpenTelemetry logs to GreptimeDB
* chore: fix test data schema error
* chore: modify the underlying data structure of the pipeline value map type from hashmap to btremap to keep key order
* chore: fix by pr comment
* chore: resolve conflicts and add some test
* chore: remove useless error
* chore: change otlp header name
* chore: fmt code
* chore: fix integration test for otlp log write api
* chore: fix by pr comment
* chore: set otlp body with fulltext default
2024-10-16 04:36:08 +00:00
zyy17
e39a9e6feb
feat: add StatementStatistics for slow query logging implementation ( #4719 )
...
* feat: log slow query
* feat: log slow query for sql
* refactor: add slow query logging options
* ci: fix errors
* feat: add StatementStatistics
* chore: revert modification of servers crate
* docs: update config docs
* fix: clippy errors
2024-09-30 03:26:50 +00:00
JohnsonLee
3a46c1b235
fix: use information_schema returns Unknown database ( #4774 )
...
* fix: use information_schema returns Unknown database 'information_schema'
* test: make sure 'use information_schma' successful
2024-09-27 23:15:48 +00:00
Ruihang Xia
f5cf25b0db
refactor: remove DfPlan wrapper ( #4733 )
...
* refactor: remove DfPlan wrapper
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* clean up
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove unused errors
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix test assertion
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-09-19 12:29:33 +00:00
shuiyisong
52d627e37d
chore: add log ingest interceptor ( #4734 )
...
* chore: add log ingest interceptor
* chore: rename
* chore: update interceptor signature
2024-09-19 05:14:47 +00:00
shuiyisong
c014e875f3
chore: add auto-decompression layer for otlp http request ( #4723 )
...
* chore: add auto-decompression for http request
* test: otlp
2024-09-18 04:32:00 +00:00
JohnsonLee
a8477e4142
fix: table resolving logic related to pg_catalog ( #4580 )
...
* fix: table resolving logic related to pg_catalog
refer to
https://github.com/GreptimeTeam/greptimedb/issues/3560#issuecomment-2287794348
and #4543
* refactor: remove CatalogProtocol type
* fix: sqlness
* fix: forbid create database pg_catalog with mysql client
* refactor: use QueryContext as arguments rather than Channel
* refactor: pass None as default behaviour in information_schema
* test: fix test
2024-09-09 00:47:59 +00:00
Ruihang Xia
93f202694c
refactor: remove unused error variants ( #4666 )
...
* add python script
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove unused errors
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix all negative cases
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* setup CI
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add license header
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-09-03 13:19:38 +00:00
jeremyhi
9b03940e03
chore: refactor metadata key value trait ( #4664 )
2024-09-03 07:00:24 +00:00
jeremyhi
f641c562c2
feat: show create database ( #4642 )
...
* feat: show create database
* feat: add sqlness test
* chore: reorder mod and use
* feat: show create schema
* Update src/frontend/src/instance.rs
2024-08-30 03:58:11 +00:00
Lanqing Yang
9286e963e7
chore: adding heartbeat sent/recv counts in greptimedb nodes ( #4624 )
...
obs: adding heartbeat sent/recv counts in greptimedb nodes
2024-08-30 03:57:16 +00:00
dennis zhuang
63f2463273
feat!: impl admin command ( #4600 )
...
* feat: impl admin statement parser
* feat: introduce AsyncFunction and implements it for admin functions
* feat: execute admin functions
* fix: license header
* fix: panic in test
* chore: fixed by code review
2024-08-26 07:53:40 +00:00
zyy17
63e1892dc1
refactor(plugin): add SetupPlugin and StartPlugin error ( #4554 )
2024-08-13 11:22:48 +00:00
Ruihang Xia
7daf24c47f
feat: remove dedicated runtime for grpc, mysql and pg protocols ( #4436 )
...
* feat: remove dedicated runtime for grpc, mysql and pg protocols
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove other runtimes
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* spawn compact task into compact_runtime
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* refine naming
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* Update src/servers/tests/mysql/mysql_server_test.rs
Co-authored-by: Zhenchi <zhongzc_arch@outlook.com >
* fix clippy
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* turnoff fuzz test matrix fail fast option
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* chore: update rt config for ci tests
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: Zhenchi <zhongzc_arch@outlook.com >
Co-authored-by: Weny Xu <wenymedia@gmail.com >
2024-07-30 06:17:58 +00:00
shuiyisong
567f5105bf
fix: missing pre_write check on prometheus remote write ( #4460 )
...
fix: missing pre_write check on prometheus remote write
2024-07-30 04:55:19 +00:00
zyy17
1a38f36d2d
refactor!: Remove Mode from FrontendOptions ( #4401 )
...
refactor: remove `Mode` from `FrontendOptions`
Signed-off-by: zyy17 <zyylsxm@gmail.com >
2024-07-29 06:57:01 +00:00