Skip to content

Conversation

@cambyzju
Copy link
Contributor

@cambyzju cambyzju commented Mar 8, 2023

Proposed changes

Issue Number: close #16547

Problem summary

  1. add support CAST AS Struct from Struct type;
  2. fix crash while CAST('{}' AS Struct);
  3. CAST('' AS complext_type) should return NULL instead of empty object;

Checklist(Required)

  • Does it affect the original behavior
  • Has unit tests been added
  • Has document been added or modified
  • Does it need to update dependencies
  • Is this PR support rollback (If NO, please explain WHY)

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
Copy link
Contributor

github-actions bot commented Mar 8, 2023

clang-tidy review says "All clean, LGTM! 👍"

@github-actions github-actions bot added the area/sql/function Issues or PRs related to the SQL functions label Mar 8, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Mar 8, 2023

clang-tidy review says "All clean, LGTM! 👍"

@github-actions
Copy link
Contributor

github-actions bot commented Mar 9, 2023

clang-tidy review says "All clean, LGTM! 👍"

@cambyzju cambyzju changed the title [fix](struct-type) support string cast to struct-type [fix](struct-type) support CAST AS Struct type Mar 9, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Mar 9, 2023

clang-tidy review says "All clean, LGTM! 👍"

@cambyzju
Copy link
Contributor Author

cambyzju commented Mar 9, 2023

run buildall

@github-actions
Copy link
Contributor

github-actions bot commented Mar 9, 2023

clang-tidy review says "All clean, LGTM! 👍"

@hello-stephen
Copy link
Contributor

TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 34.36 seconds
stream load tsv: 458 seconds loaded 74807831229 Bytes, about 155 MB/s
stream load json: 39 seconds loaded 2358488459 Bytes, about 57 MB/s
stream load orc: 74 seconds loaded 1101869774 Bytes, about 14 MB/s
stream load parquet: 31 seconds loaded 861443392 Bytes, about 26 MB/s
https://doris-community-test-1308700295.cos.ap-hongkong.myqcloud.com/tmp/20230309100052_clickbench_pr_111350.html

@cambyzju cambyzju changed the title [fix](struct-type) support CAST AS Struct type [feature](struct-type) support CAST AS Struct type Mar 9, 2023
Copy link
Member

@xy720 xy720 left a comment

Choose a reason for hiding this comment

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

LGTM

@xy720 xy720 merged commit 6dcd791 into apache:master Mar 10, 2023
@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label Mar 10, 2023
@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.

@xy720 xy720 mentioned this pull request Mar 10, 2023
88 tasks
gnehil pushed a commit to gnehil/doris that referenced this pull request Apr 21, 2023
1. add support `CAST AS Struct` from Struct type;
2. fix crash while `CAST('{}' AS Struct)`;
3. `CAST('' AS complext_type)` should return NULL instead of empty object;

---------

Co-authored-by: cambyzju <zhuxiaoli01@baidu.com>
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/sql/function Issues or PRs related to the SQL functions area/vectorization kind/test reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Roadmap] Support Struct+Map Type

3 participants