Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature][Entrance] run count hql needs to be removed limit #4894

Open
2 tasks done
sjgllgh opened this issue Sep 1, 2023 · 3 comments
Open
2 tasks done

[Feature][Entrance] run count hql needs to be removed limit #4894

sjgllgh opened this issue Sep 1, 2023 · 3 comments
Labels

Comments

@sjgllgh
Copy link
Contributor

sjgllgh commented Sep 1, 2023

Search before asking

  • I had searched in the issues and found no similar feature requirement.

Problem Description

When I execute the count statement using the hive engine, automatically add a limit 5000,eg:

SCRIPT CODE
select count(*) from default.test limit 5000;
SCRIPT CODE
This syntax will increase SQL time consumption

Description

change category:
linkis-computation-governance/linkis-entrance/src/main/scala/org/apache/linkis/entrance/interceptor/impl/Explain.scala
add:
Add restrictions and exclude count syntax when determining whether SQL needs to add limits

Use case

No response

Solutions

No response

Anything else

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!
@sjgllgh sjgllgh added the feature label Sep 1, 2023
@github-actions
Copy link

github-actions bot commented Sep 1, 2023

😊 Welcome to the Apache Linkis community!!

We are glad that you are contributing by opening this issue.

Please make sure to include all the relevant context.
We will be here shortly.

If you are interested in contributing to our website project, please let us know!
You can check out our contributing guide on
👉 How to Participate in Project Contribution.

Community

WeChat Assistant WeChat Public Account

Mailing Lists

Name Description Subscribe Unsubscribe Archive
dev@linkis.apache.org community activity information subscribe unsubscribe archive

@aiceflower
Copy link
Contributor

This prevents slow queries when querying large amounts of data. There are parameters in the code to control the removal of this restriction.

@sjgllgh
Copy link
Contributor Author

sjgllgh commented Sep 8, 2023

Only the count syntax needs to remove the limit restriction.
This type does not have parameter control. If so, please let me know

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants