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

Support UUID x Text comparison #513

Closed
MattDelac opened this issue Apr 12, 2023 · 11 comments
Closed

Support UUID x Text comparison #513

MattDelac opened this issue Apr 12, 2023 · 11 comments
Labels
bug Something isn't working help wanted Extra attention is needed stale_immune Immunity to stale bot

Comments

@MattDelac
Copy link
Contributor

Describe the bug
Matt Delac 6:38 PM
Hi
@Erez Shinan, follow up of my PR.
It sounds like we also need to support UUID x Text?

TypeError: Incompatible types for column 'owner_id': String_UUID() <-> Text()

On my use case, it happens between MySQL UUID <> Redshift Text.
I am not sure where UUID fits the class Dialect object though

Describe the environment

Describe which OS you're using, which sqeleton version, and any other information that might be relevant to this bug.

@nolar nolar transferred this issue from datafold/sqeleton Apr 20, 2023
@nolar nolar added the sqeleton label Apr 20, 2023
@leoebfolsom leoebfolsom added the bug Something isn't working label Apr 26, 2023
@dlawin dlawin added the non-dbt Use cases outside of dbt label May 8, 2023
@timothyhinh79
Copy link

Any update on this issue? I'm seeing this happen on Postgres where the column is being converted to "String_UUID" in one table, but is classified as "Text" in the other table due to detection of non-UUID values.

@dlawin
Copy link
Contributor

dlawin commented Jun 6, 2023

Any update on this issue? I'm seeing this happen on Postgres where the column is being converted to "String_UUID" in one table, but is classified as "Text" in the other table due to detection of non-UUID values.

Hi @timothyhinh79, we're not currently working on this but may in the future, in the meantime we'd happily accept a community contribution

@dlawin dlawin added the help wanted Extra attention is needed label Jun 6, 2023
@ramdharam
Copy link

@dlawin - I had this exact issue when comparing snowflake and postgres and I was able to come up with a simple approach that will overcome this issue in my fork. May be that can help. I will push it out and hopefully it can overcome your issue too.

@github-actions
Copy link
Contributor

This issue has been marked as stale because it has been open for 60 days with no activity. If you would like the issue to remain open, please comment on the issue and it will be added to the triage queue. Otherwise, it will be closed in 7 days.

@github-actions github-actions bot added the stale Issues/PRs that have gone stale label Aug 27, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Sep 4, 2023

Although we are closing this issue as stale, it's not gone forever. Issues can be reopened if there is renewed community interest. Just add a comment and it will be reopened for triage.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Sep 4, 2023
@MattDelac
Copy link
Contributor Author

@dlawin - I had this exact issue when comparing snowflake and postgres and I was able to come up with a simple approach that will overcome this issue in my fork. May be that can help. I will push it out and hopefully it can overcome your issue too.

Hey did you get that working?

@github-actions github-actions bot added triage and removed stale Issues/PRs that have gone stale labels Nov 2, 2023
@MattDelac
Copy link
Contributor Author

I still encounter this issue on the latest version (0.9.9) ...

@mrn3
Copy link

mrn3 commented Nov 2, 2023

I think once we get #762 worked out, it will resolve this issue too

@dlawin dlawin reopened this Nov 2, 2023
@dlawin dlawin added stale_immune Immunity to stale bot and removed Linear sqeleton non-dbt Use cases outside of dbt triage labels Nov 2, 2023
@dlawin
Copy link
Contributor

dlawin commented Nov 2, 2023

I still encounter this issue on the latest version (0.9.9) ...

@MattDelac do you get this warning?

Mixed UUID/Non-UUID values detected in column {'.'.join(table_path)}.{col_name}, disabling UUID support

@MattDelac
Copy link
Contributor Author

I still encounter this issue on the latest version (0.9.9) ...

@MattDelac do you get this warning?

Mixed UUID/Non-UUID values detected in column {'.'.join(table_path)}.{col_name}, disabling UUID support

No now I get the following when I compare UUID (MySQL) to BINARY (Snowflake)
image

@glebmezh
Copy link
Contributor

Hi @MattDelac,

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

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

W.r.t UUID x Text diffing. If that helps at all, we currently support it in Datafold Cloud with the caveat that upper/lower casing and "-" characters should match.

-Gleb

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

No branches or pull requests

9 participants