You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think this gives you both pieces of information - query_params are typically dataclasses, which get a repr method like DuckDBQueryParams(table_name=blah, query=blah, create_hnsw_table=blah)... although I guess in this case we're getting one of the other ReaderQueryParams.
I like to err on the side of putting too much information in error messages rather than too little. That said there may be cases where the type doesn't get reported - e.g. if you override the repr / str method or pass in some other kind of object. Nonetheless users typically won't be interacting with this api - the assert mostly exists for typechecking.
If you want to change this, go ahead an open a PR!
should be
), f"Wrong kind of query parameters found: {type(query_params)}"
sycamore/lib/sycamore/sycamore/connectors/duckdb/duckdb_reader.py
Line 37 in b4fc331
The text was updated successfully, but these errors were encountered: