data-diff icon indicating copy to clipboard operation
data-diff copied to clipboard

Error when using --update_at because column has string schema

Open ayyoubmaulana opened this issue 1 year ago • 4 comments

Is your feature request related to a problem? Please describe. I use data diff to diffing between BigQuery and MySQL, i want to use --update_column flag but my updated_at column in MySQL has string schema so the command throw error like this

image

Describe the solution you'd like make feature to convert or cast updated_at column from text to date or timestamp

ayyoubmaulana avatar Aug 07 '22 15:08 ayyoubmaulana

Can you please include a few sample values from your updated_at column?

erezsh avatar Aug 07 '22 20:08 erezsh

this is sample of updated_at column that has string schema image

ayyoubmaulana avatar Aug 08 '22 01:08 ayyoubmaulana

any update for this issue ?

ayyoubmaul avatar Sep 03 '22 10:09 ayyoubmaul

Sorry, no update yet.

erezsh avatar Sep 03 '22 10:09 erezsh

@erezsh How to save data-diff output to json ?

ayyoubmaulana avatar Oct 25 '22 10:10 ayyoubmaulana

Use --json

erezsh avatar Oct 25 '22 10:10 erezsh

@erezsh where is the output will save ?

ayyoubmaulana avatar Oct 25 '22 10:10 ayyoubmaulana

can i use this command --json '/home/user/dir/output.json' ? @erezsh

ayyoubmaulana avatar Oct 25 '22 11:10 ayyoubmaulana

You can do --json > /home/user/dir/output.json

erezsh avatar Oct 25 '22 11:10 erezsh

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[bot] avatar May 25 '23 06:05 github-actions[bot]

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[bot] avatar Jun 01 '23 06:06 github-actions[bot]