alamb commented on code in PR #9137:
URL: https://github.com/apache/arrow-datafusion/pull/9137#discussion_r1483261487


##########
datafusion-examples/examples/regexp.rs:
##########
@@ -49,29 +43,83 @@ async fn main() -> Result<()> {
     //regexp_like examples
     //
     //
-    // regexp_like format is (regexp_replace(text, regex[, flags])
+    // regexp_like format is (regexp_like(text, regex[, flags])
     //
 
     // use sql and regexp_like function to test col 'values', against patterns 
in col 'patterns' without flags
-    let df = ctx
+    let result = ctx
         .sql("select regexp_like(values, patterns) from examples")
+        .await?
+        .collect()
         .await?;
 
-    // print the results
-    df.show().await?;
-
-    // use dataframe and regexp_like function to test col 'values', against 
patterns in col 'patterns' with flags
-    let df = ctx
+    assert_batches_eq!(

Review Comment:
   👍 



-- 
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]

Reply via email to