Skip to content

Conversation

@alamb
Copy link
Contributor

@alamb alamb commented Apr 11, 2023

Which issue does this PR close?

Part of #4495

Rationale for this change

  1. Suggested by @comphead as part of feat: Implement the bitwise_not in NotExpr #5902 (comment)
  2. https://github.com/apache/arrow-datafusion/tree/main/datafusion/core/tests/sqllogictests#sqllogictests
  3. I would like to evaluate test coverage in one place

What changes are included in this PR?

  1. Port some tests over
  2. Update a message from internal to plan

Are these changes tested?

Yes

Are there any user-facing changes?

No

@github-actions github-actions bot added core Core DataFusion crate physical-expr Changes to the physical-expr crates sqllogictest SQL Logic Tests (.slt) labels Apr 11, 2023
DataType::Null => Ok(DataType::Null),
_ => Err(DataFusionError::Internal(format!(
"Can't NOT or BITWISE_NOT datatype: '{:?}'",
_ => Err(DataFusionError::Plan(format!(
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be hit with a bad user query, so it shouldn't be an Internal error

Copy link
Member

@xudong963 xudong963 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@xudong963 xudong963 merged commit 2c57310 into apache:main Apr 13, 2023
korowa pushed a commit to korowa/arrow-datafusion that referenced this pull request Apr 13, 2023
…pache#5968)

* minor: port some expr tests to sqllogictests, improve error message

* touchups
@alamb alamb deleted the alamb/move_expr_tests branch April 13, 2023 17:59
@alamb
Copy link
Contributor Author

alamb commented Apr 13, 2023

Thanks for the assist @xudong963

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Core DataFusion crate physical-expr Changes to the physical-expr crates sqllogictest SQL Logic Tests (.slt)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants