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

enh: operator input check #28839

Merged
merged 7 commits into from
Nov 28, 2024
Merged

Conversation

facetosea
Copy link
Contributor

Pull Request Checklist

  • Is the user manual updated?
  • Are the test cases passed and automated?
  • Is there no significant decrease in test coverage?

@facetosea facetosea changed the title Enh/td 32179/operator input check enh: operator input check Nov 26, 2024
do { \
if (!(c)) { \
qError("function:%s condition failed, Line:%d", __FUNCTION__, __LINE__); \
return TSDB_CODE_APP_ERROR; \
Copy link
Contributor

Choose a reason for hiding this comment

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

最好给个具体的错误码

@@ -1003,11 +1005,14 @@ static int32_t hashPartitionNext(SOperatorInfo* pOperator, SSDataBlock** ppRes)
return TSDB_CODE_SUCCESS;
}

CHECK_CONDITION_FAILED(pOperator->info != NULL);
Copy link
Contributor

Choose a reason for hiding this comment

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

这一大类都属于参数校验的范围,不属于逻辑正确性校验的范围,如果要做也应该是在create operator时做,每次在这里校验意义不大

@guanshengliang guanshengliang merged commit b1433de into main Nov 28, 2024
1 check failed
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