You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Reorganize the GroupColumn implementations into more coherent modules #13262
Once #12996 is merged, this would be a good first issue I think as it is just code movement and somewhat mechanical It would be a good way to get introduced to the code
Yes, I'm working on this, but have some questions:
I trying to rename /column.rs to /multi_column/mod.rs, and move /group_column.rs to different module. simultaneously, I've also moved some shared trait and function to /multi_column/mod.rs. However, /multi_column/mod.rs itself also defines and implements some data structures (e.g.,GroupValuesColumn, GroupIndexView). It feels too complex as a mod.rs file. Should I split it into other files as well?
In the original /group_column.rs, there were some test cases. After splitting /group_column.rs into three modules (/multi_column/byte.rs, /multi_column/byte_view.rs, and /multi_column/primitive.rs), I move the corresponding tests to their respective files. I'm not sure if this is reasonable, or if it would be better to keep all tests together in multi_column/test.rs?"
Or you can name it as multi_column.rs and add the submodule in this this file. Structure is similar to datafusion/expr-common/src/type_coercion.rs and you can place trait in multi_column.rs.
I think it is fine to place test in separated file.
Activity
alamb commentedon Nov 5, 2024
Once #12996 is merged, this would be a good first issue I think as it is just code movement and somewhat mechanical It would be a good way to get introduced to the code
Chen-Yuan-Lai commentedon Nov 6, 2024
take
alamb commentedon Nov 6, 2024
#12996 has now merged so this issue should now be unblocked
jayzhan211 commentedon Nov 11, 2024
@Chen-Yuan-Lai Have you started on this?
Chen-Yuan-Lai commentedon Nov 11, 2024
Yes, I'm working on this, but have some questions:
I trying to rename
/column.rsto/multi_column/mod.rs, and move/group_column.rsto different module. simultaneously, I've also moved some shared trait and function to/multi_column/mod.rs. However,/multi_column/mod.rsitself also defines and implements some data structures (e.g.,GroupValuesColumn,GroupIndexView). It feels too complex as amod.rsfile. Should I split it into other files as well?In the original
/group_column.rs, there were some test cases. After splitting/group_column.rsinto three modules (/multi_column/byte.rs,/multi_column/byte_view.rs, and/multi_column/primitive.rs), I move the corresponding tests to their respective files. I'm not sure if this is reasonable, or if it would be better to keep all tests together inmulti_column/test.rs?"jayzhan211 commentedon Nov 11, 2024
Or you can name it as multi_column.rs and add the submodule in this this file. Structure is similar to
datafusion/expr-common/src/type_coercion.rsand you can place trait inmulti_column.rs.I think it is fine to place test in separated file.