doris icon indicating copy to clipboard operation
doris copied to clipboard

[bugfix])(function)return error instead of crash be for unsupported CAST

Open xiaokang opened this issue 3 years ago • 0 comments

Proposed changes

Issue Number: close #xxx

Problem summary

Describe your changes.

For unsupported CAST, create create_unsupport_wrapper that return Status::InvalidArgument instead of LOG(FATAL) to avoid be crash.

Checklist(Required)

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

Further comments

If this is a relatively large or complex change, kick off the discussion at [email protected] by explaining why you chose the solution you did and what alternatives you considered, etc...

xiaokang avatar Sep 22 '22 07:09 xiaokang