Skip to content
This repository has been archived by the owner on May 17, 2024. It is now read-only.

TypeError while running data-diff between MySQL and Snowflake via python api #606

Closed
srik1981 opened this issue Jun 8, 2023 · 5 comments
Labels
bug Something isn't working stale_immune Immunity to stale bot

Comments

@srik1981
Copy link

srik1981 commented Jun 8, 2023

Describe the bug
Trying to run data-diff with min_key=[0] and max_key=[10000] via python, running into the following exception -

<[TableSegment] Attribute 'min_key' expected value of type (NoneType+Vector). Instead got [0]>

code block within python file with the error -
for row in data_diff.diff_tables(source_con, target_con, bisection_factor=100, min_key=[0], max_key=[10000]):

Exception -

        <[TableSegment] Attribute 'min_key' expected value of type (NoneType+Vector). Instead got [0]>
        <class 'TypeError'>

Describe the environment

Python 3.9.12
data-diff==0.7.8
mysql-connector-python==8.0.29

This was run on Mac with the Apple M1 Pro Chip running macOS Ventura 13.4.

@srik1981 srik1981 added the bug Something isn't working label Jun 8, 2023
@github-actions github-actions bot added the triage label Jun 8, 2023
@dlawin dlawin removed the triage label Jun 23, 2023
@dlawin
Copy link
Contributor

dlawin commented Jun 23, 2023

Hi @srik1981 thanks for reporting this, what was the column type of the key column?

@dlawin
Copy link
Contributor

dlawin commented Aug 11, 2023

relates to #603

@dlawin dlawin added stale_immune Immunity to stale bot and removed triage labels Aug 11, 2023
@leoebfolsom
Copy link
Contributor

Hi @srik1981, any chance you could share the column type of the key column?

@srik1981
Copy link
Author

Hi @srik1981, any chance you could share the column type of the key column?

Integer I believe

@glebmezh
Copy link
Contributor

Hi @srik1981,

I'm sorry for the delay in following up on this. Thank you for taking the time to raise this issue!

We made a hard decision to sunset the data-diff package and won't provide further development or support.

If that's of interest, over the past few months, we have rewritten the diffing engine in Datafold Cloud and solved many issues that existed in this package's diffing algorithm.

-Gleb

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working stale_immune Immunity to stale bot
Projects
None yet
Development

No branches or pull requests

4 participants