Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jpschorr committed Mar 7, 2024
1 parent 5bf0c5b commit d4906a4
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions partiql/tests/extension_error.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use std::any::Any;
use std::borrow::Cow;
use std::cell::RefCell;

use std::error::Error;

Expand Down Expand Up @@ -89,11 +88,11 @@ impl BaseTableExpr for EvalTestCtxTable {
fn evaluate<'c>(
&self,
args: &[Cow<Value>],
ctx: &'c dyn SessionContext<'c>,
_ctx: &'c dyn SessionContext<'c>,
) -> BaseTableExprResult<'c> {
if let Some(arg1) = args.first() {
match arg1.as_ref() {
Value::String(name) => Ok(Box::new(TestDataGen {})),
Value::String(_name) => Ok(Box::new(TestDataGen {})),
_ => {
let error = UserCtxError::BadArgs;
Err(Box::new(error) as BaseTableExprResultError)
Expand Down Expand Up @@ -157,7 +156,6 @@ pub(crate) fn evaluate(

#[test]
fn test_context_bad_args_permissive() {
use assert_matches::assert_matches;
let query = "SELECT foo, bar from test_user_context(9) as data";

let mut catalog = PartiqlCatalog::default();
Expand Down Expand Up @@ -207,7 +205,6 @@ fn test_context_bad_args_strict() {

#[test]
fn test_context_runtime_permissive() {
use assert_matches::assert_matches;
let query = "SELECT foo, bar from test_user_context('counter') as data";

let mut catalog = PartiqlCatalog::default();
Expand Down

0 comments on commit d4906a4

Please sign in to comment.