-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
[source-mysql] No empty sample #48545
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
val quickCount = | ||
"SELECT table_rows FROM information_schema.tables WHERE table_schema = '$namespace' AND table_name = '$name'" | ||
"SELECT GREATEST(10, table_rows) FROM information_schema.tables WHERE table_schema = '$namespace' AND table_name = '$name'" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not convinced this is working. I have:
(SELECT GREATEST(10, table_rows) FROM information_schema.tables WHERE table_schema = 'sghost05_wp789' AND table_name = 'view_orders')
that returns NULL
on my end. MySQL v8.0.39-30.
We used to sync all the records with:
It syncs 0 records.
Why does it happen? Because I'm syncing a view (TABLE_TYPE = VIEW), it's not a regular table:
The logic in #48035 doesn't look correct.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved to a dedicated issue #49804.
What
https://github.com/airbytehq/airbyte-internal-issues/issues/10773
(without fix it was loading 0 records because it thought table is empty; after the fix it can load the record and successfully exit)
How
Review guide
User Impact
Can this PR be safely reverted and rolled back?