-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Add table sampling with fixed shard #15128
Conversation
@@ -117,6 +118,8 @@ | |||
{ | |||
if (baseDataSource instanceof TableDataSource) { | |||
return Optional.of((TableDataSource) baseDataSource); | |||
} else if (baseDataSource instanceof SampledTableDataSource) { |
Check failure
Code scanning / CodeQL
Contradictory type checks Error
baseDataSource
SampledTableDataSource
this expression
TableDataSource
@@ -117,6 +118,8 @@ | |||
{ | |||
if (baseDataSource instanceof TableDataSource) { | |||
return Optional.of((TableDataSource) baseDataSource); | |||
} else if (baseDataSource instanceof SampledTableDataSource) { | |||
return Optional.of((SampledTableDataSource) baseDataSource); |
Check failure
Code scanning / CodeQL
Contradictory type checks Error
baseDataSource
SampledTableDataSource
this expression
TableDataSource
@@ -216,6 +219,7 @@ | |||
public boolean isTableBased() | |||
{ | |||
return (baseDataSource instanceof TableDataSource | |||
|| baseDataSource instanceof SampledTableDataSource |
Check failure
Code scanning / CodeQL
Contradictory type checks Error
Fixes #15140 .
Description
Add fixed shard table sampling for native query. The details is described in issue.
Release note
Key changed/added classes in this PR
MyFoo
OurBar
TheirBaz
This PR has: