Skip to content

Commit 38c4675

Browse files
committed
release 3.0.2.2
1 parent bdc43c8 commit 38c4675

File tree

200 files changed

+39682
-15046
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

200 files changed

+39682
-15046
lines changed

.dockerfiles/linux_aarch64/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@ RUN yum update -y
33
RUN yum install -y libuuid
44
RUN yum install -y libuuid-devel
55
RUN yum install -y devtoolset-8-gcc-c++
6+
RUN yum install -y wget
67
ENV PATH=/opt/rh/devtoolset-8/root/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
78

89
WORKDIR /tmp
9-
RUN curl https://www.openssl.org/source/old/1.0.2/openssl-1.0.2u.tar.gz > openssl-1.0.2u.tar.gz
10+
RUN wget https://www.openssl.org/source/old/1.0.2/openssl-1.0.2u.tar.gz
1011
RUN tar -xzf openssl-1.0.2u.tar.gz
1112
WORKDIR /tmp/openssl-1.0.2u
1213
ENV CFLAGS=-fPIC
@@ -15,4 +16,5 @@ RUN make -j
1516
RUN make install
1617
ENV OPENSSL_ROOT_DIR=/usr/local/openssl
1718

19+
WORKDIR /
1820

.dockerfiles/linux_x86_64/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@ RUN yum update -y
33
RUN yum install -y libuuid
44
RUN yum install -y libuuid-devel
55
RUN yum install -y devtoolset-8-gcc-c++.x86_64
6+
RUN yum install -y wget
67
ENV PATH=/opt/rh/devtoolset-8/root/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
78

89
WORKDIR /tmp
9-
RUN curl https://www.openssl.org/source/old/1.0.2/openssl-1.0.2u.tar.gz > openssl-1.0.2u.tar.gz
10+
RUN wget https://www.openssl.org/source/old/1.0.2/openssl-1.0.2u.tar.gz
1011
RUN tar -xzf openssl-1.0.2u.tar.gz
1112
WORKDIR /tmp/openssl-1.0.2u
1213
ENV CFLAGS=-fPIC
@@ -15,4 +16,5 @@ RUN make -j
1516
RUN make install
1617
ENV OPENSSL_ROOT_DIR=/usr/local/openssl
1718

19+
WORKDIR /
1820

.gitlab-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ build-Windows-amd64-job:
6060
- echo $env:CIBW_ENVIRONMENT_WINDOWS
6161
- echo $env:path
6262
- echo "COMPILE:"
63-
- python -m pip install cibuildwheel==2.15.0
63+
- python -m pip install cibuildwheel==2.17.0
6464
- python -m cibuildwheel --platform windows --output-dir wheelhouse
6565
artifacts:
6666
name: "$CI_PROJECT_NAME-$CI_JOB_NAME"

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ target_compile_definitions(${MODULE_NAME}
9696
include_directories(
9797
${CMAKE_CURRENT_SOURCE_DIR}/core/include
9898
${CMAKE_CURRENT_SOURCE_DIR}/core/thirdparty/abseil/include
99+
${CMAKE_CURRENT_SOURCE_DIR}/core/thirdparty/spdlog/include
99100
${OPENSSL_INCLUDE_DIR}
100101
${Python_INCLUDE_DIRS}
101102
)
@@ -136,6 +137,7 @@ if(WIN32)
136137
PUBLIC NOMINMAX
137138
PUBLIC _WINDOWS
138139
PUBLIC _USRDLL
140+
PUBLIC FMT_UNICODE=0
139141
)
140142

141143
get_filename_component(OPENSSL_ROOT_DIR ${OPENSSL_INCLUDE_DIR} DIRECTORY)

core/include/BatchTableWriter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class EXPORT_DECL BatchTableWriter {
6969
* this function throws an exception. If the type of the parameter and the type of the corresponding column
7070
* cannot be matched or converted, this function throws an exception. If error is raised on the server,
7171
* this function throws an exception. If the specified table is being removed, this function throws an exception.
72-
* If the background thread fails to write a row, it will print error message to std::cerr and return.
72+
* If the background thread fails to write a row, it will print error message to LOG_ERR and return.
7373
*/
7474
template<typename... Targs>
7575
void insert(const string& dbName, const string& tableName, Targs... Fargs){

core/include/ConstantImp.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
#include "WideInteger.h"
2828
#include "SysIO.h"
2929
#include "Matrix.h"
30+
#include "Logger.h"
3031

3132

3233
namespace dolphindb {
@@ -3676,7 +3677,7 @@ class Decimal : public Constant {
36763677
}
36773678
}
36783679
catch(const std::exception& e){
3679-
std::cerr << "assign decimal fail for " << e.what() << std::endl;
3680+
LOG_ERR("assign decimal fail for ", e.what());
36803681
return false;
36813682
}
36823683
return true;

core/include/DBConnectionPoolImpl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class DBConnectionPoolImpl{
6161

6262
void shutDown(){
6363
shutDownFlag_.store(true);
64-
ProtectGil pgil(true, "shutDown");
64+
py::gil_scoped_release gil;
6565
latch_->wait();
6666
}
6767

core/include/DdbPythonUtil.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,6 @@ class HIDEVISIBILITY PytoDdbRowPool{
6767
int convertingCount_;
6868
std::queue<vector<py::object>*> rows_;
6969
std::queue<vector<py::object>*> failedRows_;
70-
//when main thread call exit, new pGilRelease_ to release GIL, then run can exit
71-
SmartPointer<ProtectGil> pGil_;
7270
};
7371

7472
}

core/include/DecimalHelper.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ namespace _decimal_util {
1313
using namespace dolphindb;
1414
using pybind_dolphindb::int128;
1515
using decimal_util::exp10_i128;
16+
using decimal_util::parseString;
1617

1718

1819
inline bool isDecimalType(DATA_TYPE type) {

core/include/DolphinDB.h

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -72,17 +72,6 @@ using converter::Type;
7272
using converter::TableChecker;
7373
using converter::CHILD_VECTOR_OPTION;
7474

75-
class HIDEVISIBILITY ProtectGil{
76-
public:
77-
ProtectGil(bool release = false, const string &name = "");
78-
void acquire();
79-
~ProtectGil();
80-
private:
81-
string name_;
82-
SmartPointer<py::gil_scoped_release> pgilRelease_;
83-
bool acquired_;
84-
PyGILState_STATE gstate_;
85-
};
8675

8776
class EXPORT_DECL DBConnection {
8877
public:
@@ -161,6 +150,7 @@ class EXPORT_DECL DBConnection {
161150
const string getSessionId() const;
162151
void setProtocol(PROTOCOL protocol);
163152
void setShowOutput(bool flag);
153+
std::shared_ptr<Logger> getMsgLogger();
164154

165155
private:
166156
DBConnection(DBConnection& oth); // = delete

0 commit comments

Comments
 (0)