Skip to content

Conversation

@xy720
Copy link
Member

@xy720 xy720 commented Jan 13, 2023

Proposed changes

Issue Number: close #xxx

Problem summary

Describe your changes.

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...

@carlvinhust2012
Copy link
Contributor

LGTM

Copy link
Contributor

@cambyzju cambyzju left a comment

Choose a reason for hiding this comment

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

LGTM

@cambyzju cambyzju merged commit d32456d into apache:struct-type Jan 13, 2023
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

clang-tidy made some suggestions

for (size_t i = 0; i < field_size; i++) {
dataTypes.push_back(create_data_type(*col_desc.get_sub_field(i)));
names.push_back(col_desc.name());
names.push_back(col_desc.get_sub_field(i).name());
Copy link
Contributor

Choose a reason for hiding this comment

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

warning: member reference type 'doris::Field *' is a pointer; did you mean to use '->'? [clang-diagnostic-error]

Suggested change
names.push_back(col_desc.get_sub_field(i).name());
names.push_back(col_desc.get_sub_field(i)->name());

for (size_t i = 0; i < col_size; i++) {
dataTypes.push_back(create_data_type(col_desc.get_sub_column(i)));
names.push_back(col_desc.name());
names.push_back(col_desc.get_sub_field(i).name());
Copy link
Contributor

Choose a reason for hiding this comment

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

warning: no member named 'get_sub_field' in 'doris::TabletColumn' [clang-diagnostic-error]

            names.push_back(col_desc.get_sub_field(i).name());
                                     ^

xy720 added a commit to xy720/doris that referenced this pull request Jan 13, 2023
@xy720 xy720 self-assigned this Jan 17, 2023
xy720 added a commit that referenced this pull request Feb 6, 2023
xy720 added a commit that referenced this pull request Feb 6, 2023
xy720 added a commit that referenced this pull request Feb 9, 2023
xy720 added a commit that referenced this pull request Feb 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants