dennis zhuang
b353bd20db
fix: print_anonymous_usage_data_disclaimer at wrong place ( #2167 )
2023-08-14 08:01:10 +00:00
Lei, HUANG
55b5df9c51
feat: row wise converter ( #2162 )
...
* feat: impl mem-comparable encoding for timestamp
* fix: test cases
* impl time series encode/decoder
* fix: merge unsupported match arms
* fix: clippy
* chore: big number delimiter
* feat: encode timestamps as i64
* fix: remove useless error variant
2023-08-14 07:13:39 +00:00
Ruihang Xia
393047a541
feat: implement metric for MergeScanExec ( #2166 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-08-14 07:10:45 +00:00
LFC
606b489d53
feat: redact secrets in sql when logging ( #2141 )
2023-08-14 06:40:00 +00:00
Weny Xu
d0b3607633
feat: add table route manager and upgrade tool ( #2145 )
...
* feat: add table route manager and upgrade tool
* test: add table route manager tests
* feat: add new TableRouteValue struct
* chore: apply suggestions from CR
* refactor: change HashMap to BTreeMap
* feat: add version to TableRouteValue
2023-08-14 04:19:44 +00:00
Weny Xu
5b012a1f67
feat!: switch to new catalog/schema key ( #2140 )
...
* feat!: switch to new catalog/schema key
* chore: apply suggestions from CR
2023-08-14 03:08:43 +00:00
Ruihang Xia
f6b53984da
fix(metasrv)!: do not overwrite boolean options unconditionally ( #2161 )
...
* fix: do not overwrite boolean options unconditionally
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix sqlness start command
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-08-14 03:04:54 +00:00
shuiyisong
7f51141ed0
refactor: auth crate ( #2148 )
...
* chore: move user_info to auth crate
* chore: temp commit before resolving tests compile error
* chore: fix compile issue
* chore: minor fix
* chore: tmp save
* chore: change user_info to trait
* chore: minor change & use auth result user info in pg session setup
* chore: add as_any to user_info
* chore: rename user_info
* chore: remove ice file
* chore: add permission checker
* chore: add grpc permission check
* chore: add session spawn user_info to query_ctx
* chore: minor update
* chore: add permission checker to sql handler & temp save
* chore: add permission checker to prometheus handler
* chore: add permission checker to opentsdb handler
* chore: add permission checker to other handlers
* chore: add test
* chore: add user_info setting on http entrance
* chore: fix toml
* chore: remove box in permission req
* chore: cr issue
* chore: cr issue
2023-08-14 02:51:26 +00:00
Ruihang Xia
6d64e1c296
feat(mito): checkpoint for mito2 ( #2142 )
...
* basic impl
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* adjust dir structure
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add tests
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix styles
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix typo
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* sort result
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* downgrade log level
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* apply CR sugg.
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add region id to log
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
v0.4.0-nightly-20230814
2023-08-13 09:26:01 +00:00
Yingwen
e6090a8d5b
feat(mito): Write wal and memtable ( #2135 )
...
* feat: hold wal entry in RegionWriteCtx
* feat: entry id and commited sequence
* feat: write to wal
* feat: write memtable
* feat: fill missing columns
* feat: validate write request
* feat: more validation to write request
* chore: fix typos
* feat: remove init and validate rows in new()
* style: fix clippy
2023-08-12 07:44:44 +00:00
谢政
b62e643e92
build: update protobuf-build to support apple silicon ( #2143 )
...
* build: update protobuf-build to support apple silicon
* build: Update src/log-store/Cargo.toml
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
* build: update the Cargo.lock too
---------
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
2023-08-12 03:31:51 +00:00
dennis zhuang
6f40128058
feat!: enable telemetry by default ( #2137 )
...
* feat: remove greptimedb-telemetry feature
* feat: adds enable_telemetry option to metasrv and datanode
* refactor: move data_home from file config to storage config
* feat: store the installation uuid into datanode and metasrv working home
* fix: cargo toml fmt
* test: ignore region failver test when using local fle storage
* test: ignore telemetry reporter in test mode
* feat: print warning log when enabling telemetry
* chore: the telemetry doc link
* chore: remove enable_telemetry from datanode example config file
* refactor: rename GREPTIMEDB_TELEMETRY_CLIENT_REQUEST_TIMEOUT
* chore: rename print_warn_log to print_anonymous_usage_data_disclaimer
2023-08-11 14:50:40 +00:00
LFC
0b05c22be1
fix: make "explain" executable in repl ( #2157 )
2023-08-11 20:21:40 +08:00
Ruihang Xia
4fd1057764
fix: several clippy error/warnings after upgrading toolchain ( #2156 )
...
* fix pyscripts mod
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix clippy::needless-pass-by-ref-mut
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add pyo3 feature gate in Makefile
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-08-11 20:20:21 +08:00
Zou Wei
6877d082f6
feat: compatible with postgres interval type ( #2146 )
...
* feat: impl ToSql/FromSql/ToSqlText for PgInterval.
* chore: remove useless code.
* feat: compatible with postgres interval type.
* chore: cr comment.
2023-08-11 20:19:57 +08:00
LFC
2dcc67769e
fix: runs sqlness test on windows-latest-8-cores ( #2158 )
2023-08-11 17:34:58 +08:00
Ruihang Xia
b9bac2b195
fix: let information_schema know itself ( #2149 )
...
* rename show create table
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* register information_schema on registering catalog
* fix tests in standalone
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix frontend catalog manager
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add sqlness test
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix clippy
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix clippy & typo
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* tweak sqlness test
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* rename constructor
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* rename method
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix typo (again)
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove redundent clones
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-08-11 15:37:27 +08:00
Zou Wei
584acca09d
feat: impl duration type ( #2117 )
...
* feat: impl duration type in common time.
* feat: convert from/to std::time::Duration.
* refactor: convert function
2023-08-11 07:04:42 +00:00
LFC
ad2021a8d8
feat: print build output if it's failed in sqlness ( #2152 )
...
* feat: print build output if it's failed in sqlness
* feat: print build output if it's failed in sqlness
2023-08-11 03:34:15 +00:00
zyy17
c970c206d1
ci: add retry for uploading artifacts to s3 ( #2147 )
2023-08-10 12:59:04 +00:00
LFC
5c19913a91
build: on windows ( #2054 )
...
* build on windows
* rebase develop
* fix: resolve PR comments
2023-08-10 08:08:37 +00:00
zyy17
587a24e7fb
ci: add working dir and some minor changes of create-version.sh ( #2133 )
...
* ci: add context argument in build-greptime-binary action
* refactor: add 'working-dir' in upload-artifacts action and rename 'context' to 'working-dir'
* refactor: use timestamp as part of image tag when trigger manually
2023-08-10 04:46:43 +00:00
Ning Sun
0270708d6d
fix: correct grpc metric labels ( #2136 )
2023-08-10 03:59:41 +00:00
WU Jingdi
b7319fe2b1
feat: Support RangeSelect LogicalPlan rewrite ( #2058 )
...
* feat: Support RangeSelect LogicalPlan rewrite
* chore: fix code advice
* fix: change format of range_fn
* chore: optimize project plan rewrite
* chore: fix code advice
2023-08-10 02:53:20 +00:00
LFC
ea3708b33d
fix: deserialize TableInfoValue with missing field ( #2134 )
2023-08-10 02:43:24 +00:00
Zhenchi
7abe71f399
fix(table): return correct table types ( #2131 )
...
* fix(table): return correct table types
Signed-off-by: zhongzc <zhongzc@zhongzcs-MacBook-Pro.local >
* fix: NumbersTable to be Temporary table
Signed-off-by: zhongzc <zhongzc@zhongzcs-MacBook-Pro.local >
* fix(test): fix affected cases
Signed-off-by: zhongzc <zhongzc@zhongzcs-MacBook-Pro.local >
* fix(test): fix affected cases
Signed-off-by: zhongzc <zhongzc@zhongzcs-MacBook-Pro.local >
* fix: fmt
Signed-off-by: zhongzc <zhongzc@zhongzcs-MacBook-Pro.local >
* fix(tests): fix instance_test expected result
* retrigger action
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: zhongzc <zhongzc@zhongzcs-MacBook-Pro.local >
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
Co-authored-by: zhongzc <zhongzc@zhongzcs-MacBook-Pro.local >
2023-08-09 11:07:00 +00:00
Ruihang Xia
b156225b80
fix: correct the schema used by TypeConversionRule ( #2132 )
...
* fix: correct the schema used by TypeConversionRule
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* specify time zone in UT
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-08-09 08:18:17 +00:00
zyy17
2ac51c6348
fix: set the correct working dir before building the artifacts ( #2129 )
2023-08-09 14:34:29 +08:00
Ning Sun
7f5f8749da
test: add conditional compilation flag for datanode mock module ( #2130 )
2023-08-09 06:10:54 +00:00
Yingwen
d4e863882f
feat: Add write method to memtable trait ( #2123 )
...
* feat: validate semantic type
* feat: define KeyValues
* test: test semantic type check
* feat: impl KeyValues
* test: test KeyValues
* feat: Add write to Memtable
* style: fix clippy
* docs: more comment
2023-08-09 04:07:50 +00:00
Ning Sun
d18eb18b32
feat: use server inferenced types on statement describe ( #2032 )
...
* feat: use server inferenced types on statement describe
* feat: add support for server inferenced type
* feat: allow parameter type inferencing
* chore: update comments
* fix: lint issue
* style: comfort rustfmt
* Update src/servers/src/postgres/types.rs
Co-authored-by: Yingwen <realevenyag@gmail.com >
---------
Co-authored-by: Yingwen <realevenyag@gmail.com >
2023-08-09 02:57:56 +00:00
liyang
aa6452c86c
chore: rename dockerhub registry password ( #2127 )
2023-08-09 02:28:56 +00:00
zyy17
d44cd9c6f5
fix: add 'image-name' argument to correct the invalid image namespace(mix with image-name) ( #2126 )
2023-08-09 10:04:11 +08:00
gongzhengyang
ce0f909cac
perf: change current schema and catalog to borrow, clone only necessary ( #2116 )
...
perf: change current schema and catalog to borrow, clone only when necessary
Co-authored-by: gongzhengyang <gongzhengyang@bolean.com.cn >
2023-08-08 12:48:24 +00:00
Ruihang Xia
4c693799d8
fix: bugs related to merge scan ( #2118 )
...
* fix: prevent optimize merge scan, mark distinct as unsupported
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix some other problems
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix unit tests
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove deadcode
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add some comments
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* Update src/query/src/optimizer/type_conversion.rs
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
2023-08-08 11:42:57 +00:00
Vanish
57836e762b
feat: truncate table in standalone mode ( #2090 )
...
* feat: impl table procedure in standalone mode
* chore: remove useless changes
* test: add some tests
* Update src/table-procedure/src/truncate.rs
Co-authored-by: Yingwen <realevenyag@gmail.com >
* CR
* Update src/datanode/src/sql/truncate_table.rs
Co-authored-by: Yingwen <realevenyag@gmail.com >
* chore: fmt
---------
Co-authored-by: Yingwen <realevenyag@gmail.com >
2023-08-08 11:23:36 +00:00
zyy17
d927ab1ce5
ci: add 'upload-to-s3' option and disable it in dev build ( #2124 )
2023-08-08 11:22:24 +00:00
Ning Sun
c39de9072f
refactor: use workspace dependencies for internal modules ( #2119 )
...
* refactor: use workspace dependencies for internal modules
* fix: resolve issue with mock module in datanode
* refactor: update test modules
2023-08-08 11:02:34 +00:00
zyy17
815a6d2d61
fix: var compare error(yet another stupid mistake) ( #2122 )
2023-08-08 17:39:53 +08:00
zyy17
f1f8a1d3a9
ci: fix incorrect variable name ( #2121 )
2023-08-08 17:20:11 +08:00
zyy17
e7abd00fc0
ci: fix error import path ( #2120 )
2023-08-08 17:12:54 +08:00
zyy17
5e2fdec1b6
ci: add dev-build ( #2114 )
2023-08-08 07:58:59 +00:00
Lei, HUANG
2d9ea595cb
chore!: change logstore namespace prefix ( #1998 )
...
* chore: change logstore namespace prefix
* chore: change delimiter
2023-08-08 07:36:46 +00:00
LFC
46fa3eb629
chore: upgrade rust toolchain to latest nightly ( #2049 )
...
* chore: upgrade rust toolchain to latest nightly
* rebase develop
* update rust toolchain in ci
2023-08-08 07:17:51 +00:00
Weny Xu
7d0d8dc6e3
feat: return metasrv leader addr ( #2110 )
2023-08-07 10:01:42 +00:00
Zhenchi
f8d152231d
feat(information_schema): implement table_factory method ( #2108 )
...
* feat(information_schema): implement table_factory method
* refactor(catalog): simplify table_factory method
* Update src/table/src/data_source.rs
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
---------
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
2023-08-07 08:07:25 +00:00
Weny Xu
c8cb1ef5bc
feat: add schema and catalog key migration tool ( #2048 )
...
* feat: add schema and catalog key migration tool
* chore: apply suggestions from CR
2023-08-07 06:22:05 +00:00
Zou Wei
d5cadeeec3
feat: conversion between interval and gRPC ( #2064 )
...
* feat: support grpc for interval type
* chore: add unit test cases.
* chore: cargo clippy
* chore: modify greptime-proto version
* chore: cr comment.
* chore: cargo fmt
* refactor: convert function.
2023-08-07 06:22:04 +00:00
Ruihang Xia
7210b35d86
docs: rfc of refactoring table trait ( #2106 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-08-07 02:55:19 +00:00
Vanish
cf7e8c9142
feat: truncate region ( #2097 )
...
* feat: impl truncate region
* test: test truncate region
* chore: typo
* refactor: table truncate
* chore: remove useless changes
* chore: reset version
* fix: wait for flush task to complete
* fix: clippy
* chore: remove useless changes
* CR
Co-authored-by: Yingwen <realevenyag@gmail.com >
* Update src/storage/src/engine.rs
Co-authored-by: Yingwen <realevenyag@gmail.com >
* Update src/storage/src/engine.rs
Co-authored-by: Yingwen <realevenyag@gmail.com >
* Update src/storage/src/region.rs
Co-authored-by: Yingwen <realevenyag@gmail.com >
* Update src/storage/src/region/tests/truncate.rs
Co-authored-by: Yingwen <realevenyag@gmail.com >
* Update src/storage/src/region/tests/truncate.rs
Co-authored-by: Yingwen <realevenyag@gmail.com >
* Update src/storage/src/region/writer.rs
Co-authored-by: Yingwen <realevenyag@gmail.com >
* CR
* Update src/storage/src/engine.rs
Co-authored-by: Yingwen <realevenyag@gmail.com >
* Update src/storage/src/manifest/region.rs
Co-authored-by: Yingwen <realevenyag@gmail.com >
---------
Co-authored-by: Yingwen <realevenyag@gmail.com >
v0.4.0-nightly-20230807
2023-08-04 12:26:25 +00:00