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

Question about generate-table-partitions for Oracle to PG validation #1341

Open
helensilva14 opened this issue Nov 22, 2024 · 3 comments
Open
Assignees
Labels
type: question Request for information or clarification. Not an issue.

Comments

@helensilva14
Copy link
Collaborator

helensilva14 commented Nov 22, 2024

Currently, I'm validating data between Oracle and PostgresSql, I have a table of big data of about 500M.

How to generate a file yaml to validate 10k newest data? I checked the document but I didn't find the solution to handle my case.

Please support me.
Thank you so much.

Originally posted by @TienNguyenVanDev in #1336

@helensilva14 helensilva14 added the type: question Request for information or clarification. Not an issue. label Nov 22, 2024
@helensilva14
Copy link
Collaborator Author

Hi @TienNguyenVanDev! Here's the corresponding question issue for your case.

I think @nj1973 might be able to provide information for you.

@nj1973
Copy link
Contributor

nj1973 commented Nov 22, 2024

Hi @TienNguyenVanDev, if you have a column you can use to identify recent data then you can use that in a filter. For example:

data-validation validate row -sc=ora -tc=pg \
-tbls=acme.big_table --primary-keys=id \
--filters="create_date > DATE'2024-11-20'" \
--hash="*" \
-c /tmp/big_table_recent.yaml

But that would rely on you knowing how many records are newer than the date value in the --filters option.

We don't have specific functionality to pick 10k records. Perhaps if your table has a numeric primary key you can take the max and subtract 10,000 and use a filter, for example:

--filters="id > 987654321" \

@helensilva14
Copy link
Collaborator Author

Hi @TienNguyenVanDev! Were you able to check the comment added by Neil? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: question Request for information or clarification. Not an issue.
Projects
None yet
Development

No branches or pull requests

2 participants