Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
Signed-off-by: Runji Wang <wangrunji0408@163.com>
  • Loading branch information
wangrunji0408 committed Sep 18, 2023
1 parent 1616b82 commit d6c2dd0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/common/src/array/data_chunk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
// limitations under the License.

use std::borrow::Cow;
use std::fmt::Display;
use std::hash::BuildHasher;
use std::sync::Arc;
use std::{fmt, usize};
Expand Down Expand Up @@ -265,7 +264,8 @@ impl DataChunk {

/// Convert the chunk to compact format.
///
/// If the chunk is not compacted, return a new compacted chunk, otherwise return a reference to self.
/// If the chunk is not compacted, return a new compacted chunk, otherwise return a reference to
/// self.
pub fn compact_cow(&self) -> Cow<'_, Self> {
match &self.vis2 {
Vis::Compact(_) => Cow::Borrowed(self),
Expand Down
3 changes: 2 additions & 1 deletion src/expr/src/table_function/user_defined.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ impl UserDefinedTableFunction {
let output = DataChunk::try_from(&res?)?;
self.check_output(&output)?;

// we send the compacted input to UDF, so we need to map the row indices back to the original input
// we send the compacted input to UDF, so we need to map the row indices back to the
// original input
let origin_indices = output
.column_at(0)
.as_int32()
Expand Down

0 comments on commit d6c2dd0

Please sign in to comment.