diff --git a/src/reltoaltrep.cpp b/src/reltoaltrep.cpp index a7662bfb1..eff66620d 100644 --- a/src/reltoaltrep.cpp +++ b/src/reltoaltrep.cpp @@ -147,12 +147,6 @@ struct AltrepVectorWrapper { void *Dataptr() { if (transformed_vector.data() == R_NilValue) { auto res = rel->GetQueryResult(); - auto error = res->GetError(); - if (error != "") { - Rprintf("accessing column %" PRIu64 ":\n%s\n", column_index, error.c_str()); - //rel->res = nullptr; - //res = rel->GetQueryResult(); - } transformed_vector = duckdb_r_allocate(res->types[column_index], res->RowCount()); idx_t dest_offset = 0; diff --git a/src/rfuns.cpp b/src/rfuns.cpp index 0f0ee1f26..f42e15bd8 100644 --- a/src/rfuns.cpp +++ b/src/rfuns.cpp @@ -796,7 +796,7 @@ void InExecute(DataChunk &args, ExpressionState &state, Vector &result) { auto is_in_y = [&](LHS_TYPE left) { // special case when there are no NAs in y if (!na_in_y) { - for (int i = 0; i < y_size; i++) { + for (idx_t i = 0; i < y_size; i++) { if (try_equal(left, y_data[i])) { return true; }