Skip to content

[Fix](Table Valued function) fix the problem that can not catchthe exception thrown by the TableValuedFunctionRef constructor#14983

Merged
morningman merged 1 commit intoapache:masterfrom
BePPPower:fixtvf
Dec 13, 2022
Merged

Conversation

@BePPPower
Copy link
Contributor

Proposed changes

Issue Number: close #xxx

fix the problem that can not catchthe exception thrown by the TableValuedFunctionRef constructor

Problem summary

Put the generation of TableValuedFunctionIf in the analye function, instead of the generation in the TableValuedFunctionRef constructor.

Checklist(Required)

  1. Does it affect the original behavior:
    • Yes
    • No
    • I don't know
  2. Has unit tests been added:
    • Yes
    • No
    • No Need
  3. Has document been added or modified:
    • Yes
    • No
    • No Need
  4. Does it need to update dependencies:
    • Yes
    • No
  5. Are there any changes that cannot be rolled back:
    • Yes (If Yes, please explain WHY)
    • No

Further comments

If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org by explaining why you chose the solution you did and what alternatives you considered, etc...

@github-actions github-actions bot added the area/planner Issues or PRs related to the query planner label Dec 10, 2022
@hello-stephen
Copy link
Contributor

TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 35.27 seconds
load time: 442 seconds
storage size: 17123356913 Bytes
https://doris-community-test-1308700295.cos.ap-hongkong.myqcloud.com/tmp/20221210045859_clickbench_pr_61252.html

try {
BrokerUtil.parseFile(path, brokerDesc, fileStatuses);
} catch (UserException e) {
throw new AnalysisException("parse file failed, path = " + path);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add e.getErrorMsg()

try {
s3uri = S3URI.create(validParams.get(S3_URI), forceVirtualHosted);
} catch (UserException e) {
throw new AnalysisException("parse s3 uri failed, uri = " + validParams.get(S3_URI));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add e.getErrorMsg()

@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label Dec 13, 2022
@github-actions
Copy link
Contributor

PR approved by at least one committer and no changes requested.

@github-actions
Copy link
Contributor

PR approved by anyone and no changes requested.

@morningman
Copy link
Contributor

Please modify 2 minor problems in next PR

@morningman morningman merged commit 21676b8 into apache:master Dec 13, 2022
morningman pushed a commit that referenced this pull request Dec 14, 2022
…ception thrown by the TableValuedFunctionRef constructor (#14983)

Put the generation of TableValuedFunctionIf in the analyze function, instead of the generation in the 
TableValuedFunctionRef constructor.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by one committer. area/planner Issues or PRs related to the query planner area/table-valued-function dev/1.2.1-merged reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants