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

Allow source and target to have different column names

Open sirupsen opened this issue 3 years ago • 1 comments

You might have a column called money in one database, and amount in another. Today we don't have a way to have the columns have different names across the two databases. In the Python API, perhaps it's sufficient to just make it based on the position in the column tuple.

For the CLI, maybe we could use: -c amount:money.

sirupsen avatar Jun 21 '22 14:06 sirupsen

Make sure we also include the key and update column in this!

https://github.com/datafold/data-diff/issues/113

sirupsen avatar Jun 27 '22 17:06 sirupsen

Hi all, is anyone working on this? I would like to have this feature! And could someone confirm that we would like to have the -c amount:money syntax?

JCZuurmond avatar Dec 13 '22 09:12 JCZuurmond

@JCZuurmond Just FYI that this is already possible using the Python API.

As for the CLI, we don't have any decision. But if you vote this issue up, it increases the chances of it getting implemented.

erezsh avatar Dec 13 '22 12:12 erezsh

Thanks, I am using the Python API for now. I expect this feature is not needed - at least for now

JCZuurmond avatar Dec 13 '22 15:12 JCZuurmond

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