Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
faca7b9b
Commit
faca7b9b
authored
Sep 06, 2024
by
Vicențiu Ciorbaru
Committed by
Vicențiu Ciorbaru
Sep 06, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixup
parent
a38ffa40
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
16 deletions
+16
-16
sql/item_jsonfunc.h
sql/item_jsonfunc.h
+1
-1
sql/item_sum.h
sql/item_sum.h
+12
-0
sql/sql_statistics.cc
sql/sql_statistics.cc
+1
-1
sql/uniques.cc
sql/uniques.cc
+2
-14
No files found.
sql/item_jsonfunc.h
View file @
faca7b9b
...
...
@@ -712,7 +712,7 @@ class Item_func_json_arrayagg : public Item_func_group_concat
protected:
String
*
get_str_from_item
(
Item
*
i
,
String
*
tmp
)
override
;
String
*
get_str_from_field
(
Item
*
i
,
Field
*
f
,
String
*
tmp
,
const
uchar
*
key
,
size_t
offset
,
const
uchar
*
key
,
bool
is_null
)
override
;
void
cut_max_length
(
String
*
result
,
uint
old_length
,
uint
max_length
)
const
override
;
...
...
sql/item_sum.h
View file @
faca7b9b
...
...
@@ -601,6 +601,16 @@ class Item_sum :public Item_func_or_sum
bool
is_window_func_sum_expr
()
{
return
window_func_sum_expr_flag
;
}
virtual
void
setup_caches
(
THD
*
thd
)
{};
virtual
void
set_partition_row_count
(
ulonglong
count
)
{
DBUG_ASSERT
(
0
);
}
/*
While most Item_sum descendants employ standard aggregators configured
through Item_sum::set_aggregator() call, there are exceptions like
Item_func_group_concat, which implements its own custom aggregators for
deduplication values.
This function distinguishes between the use of standard and custom
aggregators by the object
*/
virtual
bool
uses_non_standard_aggregator_for_distinct
()
const
{
return
false
;
}
virtual
Keys_descriptor
*
get_keys_descriptor
(
uint
orig_key_size
)
const
;
protected:
virtual
bool
is_packing_allowed
(
uint
*
total_length
)
const
;
...
...
@@ -2013,6 +2023,8 @@ class Item_func_group_concat : public Item_sum
virtual
void
cut_max_length
(
String
*
result
,
uint
old_length
,
uint
max_length
)
const
;
bool
uses_non_standard_aggregator_for_distinct
()
const
override
{
return
distinct
;
}
bool
setup
(
THD
*
thd
,
bool
exclude_nulls
);
public:
// Methods used by ColumnStore
...
...
sql/sql_statistics.cc
View file @
faca7b9b
...
...
@@ -2549,7 +2549,7 @@ void Column_statistics_collected::init(THD *thd, Field *table_field)
table_field
->
type
()
==
MYSQL_TYPE_BIT
?
new
(
thd
->
mem_root
)
Count_distinct_field_bit
(
table_field
)
:
new
(
thd
->
mem_root
)
Count_distinct_field
(
table_field
);
if
(
count_distinct
&&
!
count_distinct
->
setup
(
thd
,
max_heap_table_size
))
if
(
count_distinct
&&
count_distinct
->
setup
(
thd
,
max_heap_table_size
))
{
/* Allocation failed */
delete
count_distinct
;
...
...
sql/uniques.cc
View file @
faca7b9b
...
...
@@ -309,23 +309,11 @@ static double get_merge_many_buffs_cost(THD *thd,
these will be random seeks.
*/
<<<<<<<
HEAD
double
Unique_impl
::
get_use_cost
(
THD
*
thd
,
uint
*
buffer
,
size_t
nkeys
,
uint
key_size
,
size_t
max_in_memory_size
,
double
compare_factor
,
bool
intersect_fl
,
bool
*
in_memory
)
|||||||
parent
of
2
ff87b8cf9a
(
Add
Unique
support
for
packed
keys
)
double
Unique_impl
::
get_use_cost
(
uint
*
buffer
,
size_t
nkeys
,
uint
key_size
,
double
Unique
::
get_use_cost
(
THD
*
thd
,
uint
*
buffer
,
size_t
nkeys
,
uint
key_size
,
size_t
max_in_memory_size
,
double
compare_factor
,
bool
intersect_fl
,
bool
*
in_memory
)
=======
double
Unique
::
get_use_cost
(
uint
*
buffer
,
size_t
nkeys
,
uint
key_size
,
size_t
max_in_memory_size
,
double
compare_factor
,
bool
intersect_fl
,
bool
*
in_memory
)
>>>>>>>
2
ff87b8cf9a
(
Add
Unique
support
for
packed
keys
)
{
size_t
max_elements_in_tree
;
size_t
last_tree_elems
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment