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

chore: log sample rate in query run context logs #1459

Merged
merged 3 commits into from
Jun 12, 2024

Conversation

jczhong84
Copy link
Collaborator

No description provided.

@jczhong84 jczhong84 merged commit 731a166 into pinterest:master Jun 12, 2024
3 checks passed
@@ -232,6 +228,11 @@ class DataDocQueryCellComponent extends React.PureComponent<IProps, IState> {
return Object.keys(this.samplingTables).length > 0;
}

public get sampleRate() {
// -1 for tables don't support sampling, 0 for default sample rate (which means disable sampling)
return this.hasSamplingTables ? this.state.meta.sample_rate ?? 0 : -1;
Copy link
Contributor

@zhangvi7 zhangvi7 Jun 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jczhong84 this causes max call stack size exceed since sampleRate() calls sampleRate() which calls this.sampleRate() again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants