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

[Bug] jdbc task cannot obtain the set variable value when the task takes a long time #4276

Open
2 tasks done
Keven0Liu opened this issue Feb 27, 2023 · 2 comments
Open
2 tasks done
Labels
bug Something isn't working

Comments

@Keven0Liu
Copy link

Search before asking

  • I searched the issues and found no similar issues.

Linkis Component

linkis-engineconnn-plugin

Steps to reproduce

1, create a jdbc job ,then publish to schedulis;
2, the jdbc job have set variable like below:
set yesterday= date_sub(current_date,1);
3, used variable like :
select * from xxx where usetime>= ${hiveconf:yesterday}
4, server get the code right.
select * from xxx where usetime>= ${hiveconf:yesterday}
5, but the final conversion sql is:
select * from xxx where usetime>=
sqlerror

Expected behavior

final conversion sql is:
select * from xxx where usetime>= date_sub(current_date,1)

Your environment

  • Linkis version used: 1.1.1
  • Environment name and version:
    • cdh-6.3.2
    • hive-2.1.1
    • spark-2.4 & 3.2
    • jdk 1.8.0_121

Anything else

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!
@Keven0Liu Keven0Liu added the bug Something isn't working label Feb 27, 2023
@github-actions
Copy link

😊 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
[email protected] community activity information subscribe unsubscribe archive

Keven0Liu added a commit to Keven0Liu/linkis that referenced this issue Feb 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants
@Keven0Liu and others