Weny Xu
dcfce49cff
refactor(datanode): move Instance heartbeat task to Datanode struct ( #1832 )
...
* refactor(datanode): move Instance heartbeat to Datanode struct
* chore: apply suggestions from CR
* fix: start heartbeat task after instance starts
2023-06-27 12:32:20 +08:00
JeremyHi
78b07996b1
feat: txn for meta ( #1828 )
...
* feat: txn for meta kvstore
* feat: txn
* chore: add unit test
* chore: more test
* chore: more test
* Update src/meta-srv/src/service/store/memory.rs
Co-authored-by: LFC <bayinamine@gmail.com >
* chore: by cr
---------
Co-authored-by: LFC <bayinamine@gmail.com >
2023-06-26 17:12:48 +08:00
dennis zhuang
034564fd27
feat: make blob(binary) type working ( #1818 )
...
* feat: test blob type
* feat: make blob type working
* chore: comment
* Update src/sql/src/statements/insert.rs
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
* chore: by CR comments
* fix: comment
* Update src/sql/src/statements/insert.rs
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
* Update src/sql/src/statements/insert.rs
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
* fix: test
---------
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
2023-06-26 08:49:04 +00:00
Ruihang Xia
a95f8767a8
refactor: merge catalog provider & schema provider into catalog manager ( #1803 )
...
* move to expr_factory
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* move configs into service_config
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* move GrpcQueryHandler into distributed.rs
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix compile and test in catalog sub-crate
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* clean up
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix table-procedure compile and test
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix query compile and tests
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix datanode compile and tests
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix catalog/query/script/servers compile
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix frontend compile
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix nextest except information_schema
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* support information_schema
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix sqlness test
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix merge errors
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove other structs
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* clean up
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix format
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* change deregister_table's return type to empty tuple
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-06-26 15:08:59 +08:00
Eugene Tolbakov
964d26e415
fix: docker build for aarch64 ( #1826 )
v0.4.0-nightly-20230626
2023-06-25 18:29:00 +09:00
Yingwen
fd412b7b07
refactor!: Uses table id to locate tables in table engines ( #1817 )
...
* refactor: add table_id to get_table()/table_exists()
* refactor: Add table_id to alter table request
* refactor: Add table id to DropTableRequest
* refactor: add table id to DropTableRequest
* refactor: Use table id as key for the tables map
* refactor: use table id as file engine's map key
* refactor: Remove table reference from engine's get_table/table_exists
* style: remove unused imports
* feat!: Add table id to TableRegionalValue
* style: fix cilppy
* chore: add comments and logs
2023-06-25 15:05:20 +08:00
Weny Xu
223cf31409
feat: support to copy from orc format ( #1814 )
...
* feat: support to copy from orc format
* test: add copy from orc test
* chore: add license header
* refactor: remove unimplemented macro
* chore: apply suggestions from CR
* chore: bump orc-rust to 0.2.3
2023-06-25 14:07:16 +08:00
Ruihang Xia
62f660e439
feat: implement metrics for Scan plan ( #1812 )
...
* add metrics in some interfaces
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* calc elapsed time and rows
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-06-25 14:06:50 +08:00
Lei, HUANG
0fb18245b8
fix: docker build ( #1822 )
2023-06-25 11:05:46 +08:00
Weny Xu
caed6879e6
refactor: remove redundant code ( #1821 )
2023-06-25 10:56:31 +08:00
Yingwen
5ab0747092
test(storage): wait task before checking scheduled task num ( #1811 )
v0.3.1-nightly-20230621
2023-06-21 18:04:34 +08:00
Ruihang Xia
b1ccc7ef5d
fix: prevent filter pushdown in distributed planner ( #1806 )
...
* fix: prevent filter pushdown in distributed planner
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix metadata
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-06-21 16:25:50 +08:00
Lei, HUANG
d1b5ce0d35
chore: check catalog deregister result ( #1810 )
...
* chore: check deregister result and return error on failure
* refactor: SystemCatalog::deregister_table returns Result<()>
2023-06-21 08:09:11 +00:00
Lei, HUANG
a314993ab4
chore: change logstore default config ( #1809 )
2023-06-21 07:34:24 +00:00
LFC
fa522bc579
fix: drop region alive countdown tasks when deregistering table ( #1808 )
2023-06-21 14:49:32 +08:00
Lei, HUANG
5335203360
feat: support cross compilation to aarch64 linux ( #1802 )
2023-06-21 14:08:45 +08:00
Ruihang Xia
23bf55a265
fix: __field__ matcher on single value column ( #1805 )
...
* fix error text and field_column_names
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add sqlness test
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add empty line
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* improve style
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-06-21 10:59:58 +08:00
Eugene Tolbakov
3b91fc2c64
feat: add initial implementation for status endpoint ( #1789 )
...
* feat: add initial implementation for status endpoint
* feat(status_endpoint): add more data to response
* feat(status_endpoint): use build data env vars
* feat(status_endpoint): add simple test
* fix(status_endpoint): adjust the toml indentation
2023-06-21 10:50:08 +08:00
LFC
6205616301
fix: filter table regional values with the current node id ( #1800 )
v0.4.0-nightly-20230621
v0.4.0-nightly-20230620
2023-06-20 19:17:35 +08:00
JeremyHi
e47ef1f0d2
chore: minor fix ( #1801 )
2023-06-20 11:03:52 +00:00
Lei, HUANG
16c1ee2618
feat: incremental database backup ( #1240 )
...
* feat: incremental database backup
* chore: rebase develop
* chore: move backup to StatementExecutor
* feat: copy database parser
* chore: remove some todos
* chore: use timestamp string instead of i64 string
* fix: typo
2023-06-20 18:26:55 +08:00
JeremyHi
323e2aed07
feat: deal with more than 128 txn ( #1799 )
2023-06-20 17:56:45 +08:00
LFC
cbc2620a59
feat: start region alive keepers ( #1796 )
...
* feat: start region alive keepers
2023-06-20 15:45:29 +08:00
JeremyHi
4fdee5ea3c
feat: deal with node epoch ( #1795 )
...
* feat: deal with node epoch
* feat: dn send node_epoch
* Update src/meta-srv/src/handler/persist_stats_handler.rs
Co-authored-by: dennis zhuang <killme2008@gmail.com >
* Update src/meta-srv/src/service/store/ext.rs
Co-authored-by: dennis zhuang <killme2008@gmail.com >
* chore: by cr
---------
Co-authored-by: dennis zhuang <killme2008@gmail.com >
2023-06-20 07:07:05 +00:00
dennis zhuang
30472cebae
feat: prepare supports caching logical plan and infering param types ( #1776 )
...
* feat: change do_describe function signature
* feat: infer param type and cache logical plan for msyql prepared statments
* fix: convert_value
* fix: forgot helper
* chore: comments
* fix: typo
* test: add more tests and test date, datatime in mysql
* chore: fix CR comments
* chore: add location
* chore: by CR comments
* Update tests-integration/tests/sql.rs
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
* chore: remove the trace
---------
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
2023-06-20 04:07:28 +00:00
Ruihang Xia
903f02bf10
ci: optimize release progress ( #1794 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-06-20 11:39:53 +08:00
JeremyHi
1703e93e15
feat: add handler execution timer ( #1791 )
...
* feat: add handler execution timer
* fix: by cr
2023-06-20 11:25:13 +08:00
LFC
2dd86b686f
feat: extend region leases in Metasrv ( #1784 )
...
* feat: extend region leases in Metasrv
* fix: resolve PR comments
2023-06-19 19:55:59 +08:00
LFC
128c6ec98c
feat: region alive keeper in Datanode ( #1780 )
2023-06-19 14:50:33 +08:00
Lei, HUANG
960b84262b
fix: abort parquet writer ( #1785 )
...
* fix: sst file size
* fix: avoid creating file when no row's been written
* chore: rename tests
* fix: some clippy issues
* fix: some cr comments
2023-06-19 03:19:31 +00:00
Lei, HUANG
69854c07c5
fix: wait for compaction task to finish ( #1783 )
2023-06-16 16:45:06 +08:00
JeremyHi
1eeb5b4330
feat: disable_region_failover option for metasrv ( #1777 )
2023-06-15 16:26:27 +08:00
LFC
9b3037fe97
feat: a countdown task for closing region in Datanode ( #1775 )
2023-06-14 15:50:21 +08:00
dennis zhuang
09747ea206
feat: use DataFrame to replace SQL for Prometheus remote read ( #1774 )
...
* feat: debug QueryEngineState
* feat: impl read_table to create DataFrame for a table
* fix: clippy warnings
* feat: use DataFrame to handle prometheus remote read quries
* Update src/frontend/src/instance/prometheus.rs
Co-authored-by: LFC <bayinamine@gmail.com >
* chore: CR comments
---------
Co-authored-by: LFC <bayinamine@gmail.com >
2023-06-14 07:39:28 +00:00
Lei, HUANG
fb35e09072
chore: fix compaction caused race condition ( #1767 )
...
fix: unit tests. For real, this time.
2023-06-13 21:03:09 +08:00
Weny Xu
803940cfa4
feat: enable azblob tests ( #1765 )
...
* feat: enable azblob tests
* fix: add missing arg
2023-06-13 07:44:57 +00:00
Weny Xu
420ae054b3
chore: add debug log for heartbeat ( #1770 )
2023-06-13 07:43:26 +00:00
Lei, HUANG
0f1e061f24
fix: compile issue on develop and workaround to fix failing tests cau… ( #1771 )
...
* fix: compile issue on develop and workaround to fix failing tests caused by logstore file lock
* Apply suggestions from code review
Co-authored-by: JeremyHi <jiachun_feng@proton.me >
---------
Co-authored-by: JeremyHi <jiachun_feng@proton.me >
2023-06-13 07:30:16 +00:00
Lei, HUANG
7961de25ad
feat: persist compaction time window ( #1757 )
...
* feat: persist compaction time window
* refactor: remove useless compaction window fields
* chore: revert some useless change
* fix: some CR comments
* fix: comment out unstable sqlness test
* revert commented sqlness
2023-06-13 10:15:42 +08:00
Lei, HUANG
f7d98e533b
chore: fix compaction caused race condition ( #1759 )
...
* fix: set max_files_in_l0 in unit tests to avoid compaction
* refactor: pass while EngineConfig
* fix: comment out unstable sqlness test
* revert commented sqlness
v0.4.0-nightly-20230613
2023-06-12 11:19:42 +00:00
Ruihang Xia
b540d640cf
fix: unstable order with union operation ( #1763 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-06-12 18:16:24 +08:00
Eugene Tolbakov
51a4d660b7
feat(to_unixtime): add timestamp types as arguments ( #1632 )
...
* feat(to_unixtime): add timestamp types as arguments
* feat(to_unixtime): change the return type
* feat(to_unixtime): address code review issues
* feat(to_unixtime): fix fmt issue
2023-06-12 17:21:49 +08:00
Ruihang Xia
1b2381502e
fix: bring EnforceSorting rule forward ( #1754 )
...
* fix: bring EnforceSorting rule forward
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove duplicated rules
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* wrap remove logic into a method
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2023-06-12 07:29:08 +00:00
Yingwen
0e937be3f5
fix(storage): Use region_write_buffer_size as default value ( #1760 )
2023-06-12 15:05:17 +08:00
Weny Xu
564c183607
chore: make MetaKvBackend public ( #1761 )
2023-06-12 14:13:26 +08:00
Ruihang Xia
8c78368374
refactor: replace #[snafu(backtrace)] with Location ( #1753 )
...
* remove snafu backtrace
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* clean up
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
v0.4.0-nightly-20230612
2023-06-12 11:55:33 +08:00
Lei, HUANG
67c16dd631
feat: optimize some parquet writer parameter ( #1758 )
2023-06-12 11:46:45 +08:00
Lei, HUANG
ddcee052b2
fix: order by optimization ( #1748 )
...
* add some debug log
* fix: use lazy parquet reader in MitoTable::scan_to_stream to avoid IO in plan stage
* fix: unit tests
* fix: order-by optimization
* add some tests
* fix: move metric names to metrics.rs
* fix: some cr comments
2023-06-12 11:45:43 +08:00
王听正
7efcf868d5
refactor: Remove MySQL related options from Datanode ( #1756 )
...
* refactor: Remove MySQL related options from Datanode
remove mysql_addr and mysql_runtime_size in datanode.rs, remove command line argument mysql_addr in cmd/src/datanode.rs
#1739
* feat: remove --mysql-addr from command line
in pre commit, sqlness can not find --mysql-addrr, because we remove it
issue#1739
* refactor: remove --mysql-addr from command line
in pre commit, sqlness can not find --mysql-addrr, because we remove it
issue#1739
2023-06-12 11:00:24 +08:00
dennis zhuang
f08f726bec
test: s3 manifest ( #1755 )
...
* feat: change default manifest options
* test: s3 manifest
* feat: revert checkpoint_margin to 10
* Update src/object-store/src/test_util.rs
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
---------
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
2023-06-09 10:28:41 +00:00