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

Column extraction getting skipped if all the column data is having NULL values [Mysql to Duck db] #2390

Open
SunilGembali opened this issue Mar 10, 2025 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@SunilGembali
Copy link

dlt version

1.5.0

Describe the problem

I am trying to build an extractor from mysql data source to duck db destination. In the mysql data source table if all the data in any particular column is NULL, that column is getting skipped and not being extracted to the destination duck db.

Lets say my column in source is "name" in mysql source and all the values in that column is NULL then that column is not being extracted to the destination duck db file.

If the column is a bit type in if all the values in that column is '0' then that column also getting skipped.

I am using the packages which came with the initialization of dlt init mysql duckdb . To bring the table resources i have sql_table function .

Expected behavior

It should not skip the columns if the data is having NULL values or '0' (for bit type column)

Steps to reproduce

  1. Use sql_table method for extraction.
  2. Create a source table, have a column with all the values as NULL in it.
  3. Take mysql as the source, and duck db as the destination and run the pipeline.

Operating system

Linux, macOS

Runtime environment

Local

Python version

3.11

dlt data source

No response

dlt destination

No response

Other deployment details

No response

Additional information

No response

@zilto zilto added the documentation Improvements or additions to documentation label Mar 14, 2025
@sh-rp sh-rp added bug Something isn't working and removed documentation Improvements or additions to documentation labels Mar 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Todo
Development

No branches or pull requests

4 participants