Skip to content

Commit

Permalink
Fix doc
Browse files Browse the repository at this point in the history
  • Loading branch information
ttnghia committed May 26, 2021
1 parent 238d9e2 commit 5596785
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp/src/structs/utilities.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ struct flattened_table {
// we should always do that if the structs column has any null element.
// In addition, we should check for null by calling to `has_nulls()`, not `nullable()`.
// This is because when comparing structs columns, if one column has bitmask while the other
// does not (and both columns do not have any null element) then flattening them will result
// in tables with different number of columns.
// does not (and both columns do not have any null element) then flattening them using
// `nullable()` will result in tables with different number of columns.
if (nullability == column_nullability::FORCE || col.has_nulls()) {
validity_as_column.push_back(cudf::is_valid(col));
if (col.has_nulls()) {
Expand Down

0 comments on commit 5596785

Please sign in to comment.