Skip to content

Commit ebc567d

Browse files
authored
Update version info (#2398)
### What problem does this PR solve? Update version info to 0.5.1 ### Type of change - [x] Documentation Update --------- Signed-off-by: Jin Hai <[email protected]>
1 parent 2c87e97 commit ebc567d

File tree

15 files changed

+29
-25
lines changed

15 files changed

+29
-25
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cmake_minimum_required(VERSION 3.28.1)
22

3-
project(infinity VERSION 0.5.0)
3+
project(infinity VERSION 0.5.1)
44

55
if(NOT CMAKE_GENERATOR STREQUAL "Ninja")
66
message(FATAL_ERROR "This project requires the Ninja generator. Refers to https://cmake.org/cmake/help/latest/manual/cmake-cxxmodules.7.html#generator-support")
@@ -260,7 +260,7 @@ if(DEFINED CPACK_PACKAGE_VERSION)
260260
string(REPLACE "-" "." CPACK_PACKAGE_VERSION "${CPACK_PACKAGE_VERSION}")
261261
endif()
262262
if(NOT DEFINED CPACK_PACKAGE_VERSION OR CPACK_PACKAGE_VERSION STREQUAL "")
263-
set(CPACK_PACKAGE_VERSION "0.5.0")
263+
set(CPACK_PACKAGE_VERSION "0.5.1")
264264
endif()
265265
set(CPACK_PACKAGE_RELEASE 1)
266266
set(CPACK_PACKAGE_CONTACT "Zhichang Yu <[email protected]>")

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Supports a wide range of data types including strings, numerics, vectors, and mo
6060
Infinity supports two working modes, embedded mode and client-server mode. Infinity's embedded mode enables you to quickly embed Infinity into your Python applications, without the need to connect to a separate backend server. The following shows how to operate in embedded mode:
6161

6262
```bash
63-
pip install infinity-embedded-sdk==0.5.0
63+
pip install infinity-embedded-sdk==0.5.1
6464
```
6565
Use Infinity to conduct a dense vector search:
6666
```python

benchmark/remote_infinity/remote_query_benchmark.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ struct InfinityClient {
5151
transport->open();
5252
CommonResponse response;
5353
ConnectRequest request;
54-
request.__set_client_version(27); // 0.5.0.dev6 and 0.5.0.dev7 and 0.5.0
54+
request.__set_client_version(27); // 0.5.0.dev6 and 0.5.0.dev7 and 0.5.0 and 0.5.1
5555
client->Connect(response, request);
5656
session_id = response.session_id;
5757
}

client/cpp/infinity_client.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Client Client::Connect(const std::string &ip_address, uint16_t port) {
2525
transport->open();
2626
CommonResponse response;
2727
ConnectRequest request;
28-
request.__set_client_version(27); // 0.5.0.dev6 and 0.5.0.dev7 and 0.5.0
28+
request.__set_client_version(27); // 0.5.0.dev6 and 0.5.0.dev7 and 0.5.0 and 0.5.1
2929
client->Connect(response, request);
3030
return {socket, transport, protocol, std::move(client), response.session_id};
3131
}

docs/getstarted/build_from_source.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ cmake --build . -t test_main
264264

265265
2. Install Python sdk of infinity:
266266
```bash
267-
pip install infinity-sdk==0.5.0
267+
pip install infinity-sdk==0.5.1
268268
```
269269

270270
3. Run the functional tests:
@@ -286,7 +286,7 @@ cmake --build . -t test_main
286286

287287
2. Install Python sdk of infinity:
288288
```bash
289-
pip install infinity-sdk==0.5.0
289+
pip install infinity-sdk==0.5.1
290290
```
291291

292292
3. Run the functional tests:
@@ -309,7 +309,7 @@ cmake --build . -t test_main
309309

310310
2. Install Python sdk of infinity:
311311
```bash
312-
pip install infinity-sdk==0.5.0
312+
pip install infinity-sdk==0.5.1
313313
```
314314

315315
3. Run the functional tests:

docs/getstarted/deploy_infinity_server.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ This approach allows you to call Infinity as a Python module. To deploy Infinity
3434
### Install Infinity as a module
3535

3636
```
37-
pip install infinity-embedded-sdk==0.5.0
37+
pip install infinity-embedded-sdk==0.5.1
3838
```
3939

4040
### Create an Infinity object
@@ -101,7 +101,7 @@ If you are on Windows 10+, you must enable WSL or WSL2 to deploy Infinity using
101101
### Install Infinity client
102102

103103
```
104-
pip install infinity-sdk==0.5.0
104+
pip install infinity-sdk==0.5.1
105105
```
106106

107107
### Run a vector search
@@ -151,7 +151,7 @@ This section provides instructions on deploying Infinity using binary package on
151151

152152
Fedora/RHEL/CentOS/OpenSUSE
153153
```bash
154-
sudo rpm -i infinity-0.5.0-x86_64.rpm
154+
sudo rpm -i infinity-0.5.1-x86_64.rpm
155155
```
156156

157157
```bash
@@ -162,7 +162,7 @@ sudo systemctl start infinity
162162
<TabItem value="ubuntu">
163163

164164
```bash
165-
sudo dpkg -i infinity-0.5.0-x86_64.deb
165+
sudo dpkg -i infinity-0.5.1-x86_64.deb
166166
```
167167

168168
```bash
@@ -175,7 +175,7 @@ sudo systemctl start infinity
175175
### Install Infinity client
176176

177177
```
178-
pip install infinity-sdk==0.5.0
178+
pip install infinity-sdk==0.5.1
179179
```
180180

181181
### Run a vector search

docs/getstarted/quickstart.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ If you wish to embed Infinity into your Python application without the need for
2121

2222
1. Install the Infinity-embedded SDK:
2323
```bash
24-
pip install infinity-embedded-sdk==0.5.0
24+
pip install infinity-embedded-sdk==0.5.1
2525
```
2626
2. Use Infinity to conduct a dense vector search:
2727
```python

example/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
The Python scripts in the current directory provides the examples of the infinity SDK API. Before running these scripts, please ensure that the correct version of infinity SDK is installed. If you are using the server version of Infinity, you can use the following command to install it
66

77
```shell
8-
pip install infinity-sdk==0.5.0.dev7
8+
pip install infinity-sdk==0.5.1
99
```
1010

1111
To use Infinity locally as a Python module, install the Infinity Embedded SDK:
1212

1313
```shell
14-
pip install infinity-embedded-sdk==0.5.0.dev7
14+
pip install infinity-embedded-sdk==0.5.1
1515
```
1616

1717
Once the installation completes, run some simple examples:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ build-backend = "scikit_build_core.build"
1111

1212
[project]
1313
name = "infinity_embedded_sdk"
14-
version = "0.5.0"
14+
version = "0.5.1"
1515
requires-python = ">=3.10"
1616
dependencies = [
1717
"sqlglot~=11.7.0",

python/infinity_sdk/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Infinity supports two working modes, embedded mode and client-server mode. The f
6363

6464
2. Install the `infinity-sdk` package:
6565
```bash
66-
pip install infinity-sdk==0.5.0.dev4
66+
pip install infinity-sdk==0.5.1
6767
```
6868

6969
3. Use Infinity to conduct a dense vector search:

python/infinity_sdk/infinity/remote_thrift/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ def _reconnect(self):
9797
# version: 0.5.0.dev2, client_version: 24
9898
# version: 0.5.0.dev3, client_version: 25
9999
# version: 0.5.0.dev4 and 0.5.0.dev5, client_version: 26
100-
# version: 0.5.0.dev6 and 0.5.0.dev7 and 0.5.0, client_version: 27
101-
res = self.client.Connect(ConnectRequest(client_version=27)) # 0.5.0.dev6 and 0.5.0.dev7 and 0.5.0
100+
# version: 0.5.0.dev6 and 0.5.0.dev7 and 0.5.0 and 0.5.1, client_version: 27
101+
res = self.client.Connect(ConnectRequest(client_version=27)) # 0.5.0.dev6 and 0.5.0.dev7 and 0.5.0 and 0.5.1
102102
if res.error_code != 0:
103103
raise InfinityException(res.error_code, res.error_msg)
104104
self.session_id = res.session_id

src/main/query_context.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,10 @@ QueryResult QueryContext::QueryStatement(const BaseStatement *base_statement) {
318318
}
319319

320320
void QueryContext::CreateQueryProfiler() {
321+
if(InfinityContext::instance().storage()->catalog() == nullptr) {
322+
return ;
323+
}
324+
321325
if (InfinityContext::instance().storage()->catalog()->GetProfile()) {
322326
if(query_profiler_ == nullptr) {
323327
query_profiler_ = MakeShared<QueryProfiler>(true);

src/network/infinity_thrift_service.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ ClientVersions::ClientVersions() {
9393
client_version_map_[24] = String("0.5.0.dev2");
9494
client_version_map_[25] = String("0.5.0.dev3");
9595
client_version_map_[26] = String("0.5.0.dev5");
96-
client_version_map_[27] = String("0.5.0");
96+
client_version_map_[27] = String("0.5.1");
9797
}
9898

9999
Pair<const char *, Status> ClientVersions::GetVersionByIndex(i64 version_index) {

src/network/infinity_thrift_service.cppm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ struct ClientVersions {
6060
export class InfinityThriftService final : public infinity_thrift_rpc::InfinityServiceIf {
6161
private:
6262
static constexpr std::string_view ErrorMsgHeader = "[THRIFT ERROR]";
63-
static constexpr i64 current_version_index_{27}; // 0.5.0.dev6 and 0.5.0.dev7 and 0.5.0
63+
static constexpr i64 current_version_index_{27}; // 0.5.0.dev6 and 0.5.0.dev7 and 0.5.0 and 0.5.1
6464

6565
static std::mutex infinity_session_map_mutex_;
6666
static HashMap<u64, SharedPtr<Infinity>> infinity_session_map_;

src/unit_test/main/config.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ TEST_F(ConfigTest, test1) {
4040
auto status = config.Init(path, nullptr);
4141
ASSERT_TRUE(status.ok());
4242

43-
EXPECT_EQ(config.Version(), "0.5.0");
43+
EXPECT_EQ(config.Version(), "0.5.1");
4444
EXPECT_EQ(config.TimeZone(), "UTC");
4545
EXPECT_EQ(config.TimeZoneBias(), 8);
4646
EXPECT_EQ(config.CPULimit(), std::thread::hardware_concurrency());
@@ -88,7 +88,7 @@ TEST_F(ConfigTest, test2) {
8888
auto status = config.Init(path, nullptr);
8989
ASSERT_TRUE(status.ok());
9090

91-
EXPECT_EQ(config.Version(), "0.5.0");
91+
EXPECT_EQ(config.Version(), "0.5.1");
9292
EXPECT_EQ(config.TimeZone(), "UTC");
9393
EXPECT_EQ(config.TimeZoneBias(), -8);
9494

@@ -210,7 +210,7 @@ TEST_F(ConfigTest, TestValidValues) {
210210
auto status = config.Init(path, nullptr);
211211
ASSERT_TRUE(status.ok());
212212

213-
EXPECT_EQ(config.Version(), "0.5.0");
213+
EXPECT_EQ(config.Version(), "0.5.1");
214214
EXPECT_EQ(config.TimeZone(), "UTC");
215215
EXPECT_EQ(config.TimeZoneBias(), -8);
216216
EXPECT_EQ(config.CPULimit(), 2);

0 commit comments

Comments
 (0)