Skip to content

Commit

Permalink
more changes
Browse files Browse the repository at this point in the history
  • Loading branch information
hussein-awala committed Jan 23, 2025
1 parent 1aa2f4e commit 198ebd6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions crates/iceberg/src/expr/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,13 +124,13 @@ impl PredicateOperator {
///
/// ```rust
/// use iceberg::expr::PredicateOperator;
/// assert!(PredicateOperator::IsNull.negate() == PredicateOperator::NotNull);
/// assert!(PredicateOperator::IsNan.negate() == PredicateOperator::NotNan);
/// assert!(PredicateOperator::LessThan.negate() == PredicateOperator::GreaterThanOrEq);
/// assert!(PredicateOperator::GreaterThan.negate() == PredicateOperator::LessThanOrEq);
/// assert!(PredicateOperator::Eq.negate() == PredicateOperator::NotEq);
/// assert!(PredicateOperator::In.negate() == PredicateOperator::NotIn);
/// assert!(PredicateOperator::StartsWith.negate() == PredicateOperator::NotStartsWith);
/// assert_eq!(PredicateOperator::IsNull.negate(), PredicateOperator::NotNull);
/// assert_eq!(PredicateOperator::IsNan.negate(), PredicateOperator::NotNan);
/// assert_eq!(PredicateOperator::LessThan.negate(), PredicateOperator::GreaterThanOrEq);
/// assert_eq!(PredicateOperator::GreaterThan.negate(), PredicateOperator::LessThanOrEq);
/// assert_eq!(PredicateOperator::Eq.negate(), PredicateOperator::NotEq);
/// assert_eq!(PredicateOperator::In.negate(), PredicateOperator::NotIn);
/// assert_eq!(PredicateOperator::StartsWith.negate(), PredicateOperator::NotStartsWith);
/// ```
pub fn negate(self) -> PredicateOperator {
match self {
Expand Down
2 changes: 1 addition & 1 deletion crates/integration_tests/tests/scan_all_type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ async fn test_scan_all_type() {
.into_iter(),
)
.unwrap();
assert!(col13.data_type() == &DataType::FixedSizeBinary(16));
assert_eq!(col13.data_type(), &DataType::FixedSizeBinary(16));
let col14 = TimestampMicrosecondArray::from(vec![1, 2, 3, 4, 5]).with_timezone(UTC_TIME_ZONE);
let col15 = StructArray::from(vec![
(
Expand Down

0 comments on commit 198ebd6

Please sign in to comment.