Lordworms commented on code in PR #9330:
URL: https://github.com/apache/arrow-datafusion/pull/9330#discussion_r1501467797
##########
datafusion/core/src/dataframe/mod.rs:
##########
@@ -2974,4 +2977,21 @@ mod tests {
Ok(())
}
+ #[tokio::test]
+ async fn recursion_explain() -> Result<()> {
+ let ctx = SessionContext::new();
+ // must be error
+ let mut result = ctx.sql("explain select 1").await?.explain(false,
false);
+ assert!(
+ result.is_err(),
+ "Expected an error, but operation succeeded."
+ );
+ // must be error
+ result = ctx.sql("explain explain select 1").await;
+ assert!(
+ result.is_err(),
+ "Expected an error, but operation succeeded."
+ );
Review Comment:
Got it!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]