Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extension is not sending the original query to MySQL #31

Open
2 tasks done
ulissescappato opened this issue Jan 22, 2024 · 3 comments
Open
2 tasks done

Extension is not sending the original query to MySQL #31

ulissescappato opened this issue Jan 22, 2024 · 3 comments

Comments

@ulissescappato
Copy link

What happens?

I'm trying to update a DuckDB database with only incremental data, but the extension searches the entire table in the source table (MySQL).

To Reproduce

Dbeaver:

ATTACH '...' AS mysql_test (TYPE mysql_scanner, READ_ONLY);
SELECT * FROM mysql_test.sales WHERE id > 10000000

MySQL:

SELECT *
FROM INFORMATION_SCHEMA.PROCESSLIST
WHERE command = 'Query'
order by time desc

Listed query:

SELECT id, product, total FROM schema_test.sales

Note that the query running in MySQL does not have the 'WHERE' clause.

OS:

Windows 11

MySQL Version:

8.0.32

DuckDB Version:

0.9.2

DuckDB Client:

DBeaver

Full Name:

Ulisses

Affiliation:

Developer

Have you tried this on the latest main branch?

  • I agree

Have you tried the steps to reproduce? Do they include all relevant data and configuration? Does the issue you report still appear there?

  • I agree
@Mytherin
Copy link
Contributor

Thanks for the report! Filter pushdown is not enabled by default currently, try SET mysql_experimental_filter_pushdown=true and re-running.

@ulissescappato
Copy link
Author

Thanks for the report! Filter pushdown is not enabled by default currently, try SET mysql_experimental_filter_pushdown=true and re-running.

Thanks, Mark!

@rlancer
Copy link

rlancer commented Mar 25, 2024

Thanks for your work on the extension!

Found #50

Should loading the entire table be the desired behavior? My use case is connecting many tables together from different data sources, these tables are way larger than I could fit in memory

My initial query which didn't work:

`select * from mysql.table limit = 10` still fails for me even with `SET mysql_experimental_filter_pushdown=true`

`where in (list of ids...)` does work

Note I am running these queries on PlantScale which fails after 100k results

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants