Skip to content

branch-3.0: [enhancement](Nereids) boost characterLiteralTypeCoercion#43089

Closed
github-actions[bot] wants to merge 1 commit intobranch-3.0from
auto-pick-42941-branch-3.0
Closed

branch-3.0: [enhancement](Nereids) boost characterLiteralTypeCoercion#43089
github-actions[bot] wants to merge 1 commit intobranch-3.0from
auto-pick-42941-branch-3.0

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Nov 1, 2024

PR Body: ## Proposed changes

Boost characterLiteralTypeCoercion by check the string format and skip throw Throwable when can not parse string to integer/float/date/datetime.

This logical usually appear when search If function signature, because the If has lots of signature, we need cast argument to the signature type to matches the best signature, for example:

select if(column_1, 'xxx', 'yyy')

we will check whether the 'xxx' and 'yyy' can be parsed to int/datetime and so on.

In some scenarios, this optimize can provide 16% QPS

before: optimize:
image

image

after optimize:
image

image

Cherry-picked from #42941

Boost characterLiteralTypeCoercion by check the string format and skip
throw Throwable when can not parse string to
integer/float/date/datetime.

This logical usually appear when search `If` function signature, because
the If has lots of signature, we need cast argument to the signature
type to matches the best signature, for example:

```
select if(column_1, 'xxx', 'yyy')
```
we will check whether the 'xxx' and 'yyy' can be parsed to int/datetime
and so on.



In some scenarios, this optimize can provide 16% QPS

before: optimize:
<img width="1901" alt="image"
src="https://github.com/user-attachments/assets/b03d2d29-5d3b-45a6-ba54-2bcc7c2dccca">

<img width="1484" alt="image"
src="https://github.com/user-attachments/assets/82cbb2b0-dfe8-4a05-bc2f-ebb35dc23209">

after optimize:
<img width="1724" alt="image"
src="https://github.com/user-attachments/assets/d60a867d-596d-4ac1-9377-6460ed6d3dd1">

<img width="1722" alt="image"
src="https://github.com/user-attachments/assets/c9c9f72c-3a5f-4c24-95d9-9ca99ecab0a6">
@github-actions
Copy link
Contributor Author

github-actions bot commented Nov 1, 2024

run buildall

@doris-robot
Copy link

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR

Since 2024-03-18, the Document has been moved to doris-website.
See Doris Document.

@dataroaring dataroaring closed this Nov 7, 2024
@dataroaring dataroaring deleted the auto-pick-42941-branch-3.0 branch December 27, 2024 07:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants