JeremyHi
6cd7319d67
refactor: grpc insert ( #2188 )
...
* feat: interval type for row protocol
* feat: minor refactor grpc insert
* Update src/common/grpc-expr/src/util.rs
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
* fix: by comment
---------
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
2023-08-16 11:25:25 +00:00
Yingwen
bb062003ef
ci: fallback to run_id to avoid cancelling other jobs ( #2186 )
...
ci: fallback to run id to avoid cancelling other jobs
2023-08-16 09:24:17 +00:00
Weny Xu
8ea1763033
refactor: refactor table metadata manager ( #2159 )
...
* refactor: table-metadata-manager
* feat: remove comparing when deleting metadata
* fix: fix comment typos
* chore: apply suggestions from CR
* test: add tests for updating DatanodeTable
* fix: fix clippy
* chore: apply suggestions from CR
* refactor: improve update table route tests
* refactor: return Txn instead of TxnRequest
* chore: apply suggestions from CR
* chore: apply suggestions from CR
2023-08-16 06:43:03 +00:00
Zhenchi
1afe96e397
refactor: prevent dist table from invoking scan ( #2179 )
...
* refactor: prevent dist table from invoking `scan`
* refactor: reorg code
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* chore: add comment
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2023-08-16 04:43:33 +00:00
Ruihang Xia
814c599029
ci: cancel in-progress actions on new commit ( #2182 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-08-16 04:21:14 +00:00
Ruihang Xia
4c3169431b
feat: move region metadata to store-api ( #2181 )
...
* add metadata & handle_read
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* move metadata to store-api
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* dep aquamarine
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove deadcode
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove temporary code
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* Update src/store-api/Cargo.toml
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
* remove old mod
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
2023-08-16 04:18:26 +00:00
sh2
202540823f
refactor!: move prometheus routes to default http server ( #2005 )
...
* move prometheus routes to default http server
Signed-off-by: sh2 <shawnhxh@outlook.com >
* fix ci test and remove the server logic of prometheus
* remove unused import and prometheus relevant code
* fix ci: rustfmt and test
* fix ci: silly fmt
* fix ci: silly silly fmt
* change `/prom_store` back to `/prometheus`
* remove unused variable
---------
Signed-off-by: sh2 <shawnhxh@outlook.com >
2023-08-16 03:21:14 +00:00
dennis zhuang
0967678a51
feat: don't enable telemetry for debug building ( #2177 )
2023-08-16 01:53:11 +00:00
shuiyisong
c8cde704cf
chore: minor auth crate change ( #2176 )
...
* chore: pub auth_mysql
* chore: pub all error
* chore: remove back to error
* chore: wrap failed permission check result to err
* chore: minor change
2023-08-15 10:49:22 +00:00
JeremyHi
24dc827ff9
feat: grpc handler result ( #2107 )
...
* feat: grpc handler inner result
* feat: ext header, x-greptime-err-code, x-greptime-err-msg
* fix: sqlness case
* chore: by comment
* fix: convert status to Error
2023-08-15 09:34:00 +00:00
Weny Xu
f5e44ba4cf
docs: rfc of update metadata in single txn ( #2165 )
...
* docs: rfc of update metadata in single txn
* chore: apply suggestion from CR
2023-08-15 17:44:07 +08:00
zyy17
32c3ac4fcf
refactor: improve the image building performance ( #2175 )
...
* refactor: use '--output type=local' in 'build-greptime-by-buildx' target to reduce unnecessary 'docker cp'"
Signed-off-by: zyy17 <zyylsxm@gmail.com >
* refactor: improve the image building performance
* ci: release centos dev builder
* ci: use 'make build-by-dev-builder' to improve docker build performance
* refactor: add 'which' command in centos
* fix: add 'OUTPUT_DIR' to fix 'make docker-image-buildx' error
* fix: fix incorrect dockerfile path
Signed-off-by: zyy17 <zyylsxm@gmail.com >
* refactor: remove configure-aws-credentials action and use env variables
Signed-off-by: zyy17 <zyylsxm@gmail.com >
* ci: update slack notification prompt
* refactor: clean up the target directory before building artifacts of centos7
---------
Signed-off-by: zyy17 <zyylsxm@gmail.com >
2023-08-15 09:28:09 +00:00
Niwaka
a8f2e4468d
feat: handle multiple grpc deletes ( #2150 )
...
* feat: handle multiple grpc deletes
* fix: make DistDeleter::grpc_delete return usize
* fix: remove backtrace from MissingTimeIndexColumn
* fix: avoid using unwrap in PartitionRuleManager::split_delete_request
* fix: simplify MissingTimeIndexColumn
2023-08-15 08:22:46 +00:00
Yingwen
d4565c0a94
feat(mito): Defines the read Batch struct for mito2 ( #2174 )
...
* feat: define batch
* feat: define Batch struct
* feat: stream writer takes arrow's types
* feat: make it compile
* feat: use uint64vector and uint8vector
* feat: add timestamps and primary key
2023-08-15 06:39:21 +00:00
Ruihang Xia
2168970814
feat: define region server and related requests ( #2160 )
...
* define region server and related requests
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fill request body
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* change mito2's request type
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix clippy
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* chore: bump greptime-proto to d9167cab (row insert/delete)
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix test compile
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove name_to_index
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* address cr comments
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* finilise
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-08-15 06:27:27 +00:00
Weny Xu
69a2036cee
feat!: add deserializer for Partition ( #2169 )
...
* feat!: add deserializer for Partition
* fix: fix tests
2023-08-15 03:36:58 +00:00
Lei, HUANG
e924b44e83
refactor: KeyValues return ValueRef ( #2170 )
...
* refactor: KeyValues return ValueRef
* 1. Change KeyValues returned value from pb value to ValueRef
2. Replace OpType/SemanticType with pb's OpType and SemanticType to avoid duplicated conversions.
* feat: define min value of OpType as a const
* fix: toml format
2023-08-14 14:51:13 +00:00
Yingwen
768239eb49
fix: panic on truncate table in distributed mode ( #2173 )
2023-08-14 14:20:20 +00:00
Ning Sun
f3157df190
fix: normalize otlp string keys ( #2168 )
2023-08-14 09:39:54 +00:00
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