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
When there are multiple duplicated ids in the column_ids, the unwrap could panic. In most cases, the optimizer could ensure there are no duplicated columns but in some corner case, the optimizer does not optimize it, and the CN panic. I think the execution should handle this case, whether the optimizer does that optimization.
The text was updated successfully, but these errors were encountered:
liurenjie1024
changed the title
construct table could panic when there is duplicated column in the output columns
bug construct table could panic when there is duplicated column in the output columns
Feb 9, 2024
liurenjie1024
changed the title
bug construct table could panic when there is duplicated column in the output columns
bug:construct table could panic when there is duplicated column in the output columns
Feb 9, 2024
When there are multiple duplicated ids in the column_ids, the unwrap could panic
Just read the code of HashMap and I think the panic is because none of these columns have the given column_id, not caused by duplication. Let me try to reproduce it and inspect these variables.
Sorry I misunderstood. There are duplications in column_ids rather than table_columns
risingwave/src/storage/src/row_serde/mod.rs
Lines 29 to 42 in d2c547a
When there are multiple duplicated ids in the
column_ids
, theunwrap
could panic. In most cases, the optimizer could ensure there are no duplicated columns but in some corner case, the optimizer does not optimize it, and the CN panic. I think the execution should handle this case, whether the optimizer does that optimization.The text was updated successfully, but these errors were encountered: