[CP][FEAT MERGE]SDO_GEOMETRY & MYSQL GIS EXPR IMPLEMENT

This commit is contained in:
wu-xingying
2024-04-08 13:45:07 +00:00
committed by ob-robot
parent 766a7c6c3c
commit 34c3718f40
344 changed files with 39680 additions and 3076 deletions

View File

@ -64,6 +64,7 @@ using namespace oceanbase::share::schema;
using namespace oceanbase::share;
using namespace oceanbase::pl;
using namespace oceanbase::obmysql;
using namespace oceanbase::observer;
static const int64_t DEFAULT_XA_END_TIMEOUT_SECONDS = 60;/*60s*/
@ -524,6 +525,15 @@ int ObSQLSessionInfo::is_preserve_order_for_pagination_enabled(bool &enabled) co
return ret;
}
bool ObSQLSessionInfo::is_pl_prepare_stage() const
{
bool bret = false;
if (OB_NOT_NULL(cur_exec_ctx_) && OB_NOT_NULL(cur_exec_ctx_->get_sql_ctx())) {
bret = cur_exec_ctx_->get_sql_ctx()->is_prepare_stage_;
}
return bret;
}
bool ObSQLSessionInfo::is_index_skip_scan_enabled() const
{
bool bret = false;
@ -2909,12 +2919,12 @@ int ObSQLSessionInfo::ps_use_stream_result_set(bool &use_stream) {
return ret;
}
observer::ObPieceCache* ObSQLSessionInfo::get_piece_cache(bool need_init) {
ObPieceCache* ObSQLSessionInfo::get_piece_cache(bool need_init) {
if (NULL == piece_cache_ && need_init) {
void *buf = get_session_allocator().alloc(sizeof(observer::ObPieceCache));
void *buf = get_session_allocator().alloc(sizeof(ObPieceCache));
if (NULL != buf) {
MEMSET(buf, 0, sizeof(observer::ObPieceCache));
piece_cache_ = new (buf) observer::ObPieceCache();
MEMSET(buf, 0, sizeof(ObPieceCache));
piece_cache_ = new (buf) ObPieceCache();
if (OB_SUCCESS != piece_cache_->init(get_effective_tenant_id())) {
piece_cache_->~ObPieceCache();
get_session_allocator().free(piece_cache_);

View File

@ -1565,6 +1565,7 @@ public:
inline void inc_in_bytes(int64_t in_bytes) { IGNORE_RETURN ATOMIC_FAA(&in_bytes_, in_bytes); }
inline int64_t get_out_bytes() const { return ATOMIC_LOAD(&out_bytes_); }
inline void inc_out_bytes(int64_t out_bytes) { IGNORE_RETURN ATOMIC_FAA(&out_bytes_, out_bytes); }
bool is_pl_prepare_stage() const;
private:
transaction::ObTxnFreeRouteCtx txn_free_route_ctx_;
//save the current sql exec context in session