Skip to content

Implement load ndjson files dumped by event listener#67

Open
unidevel wants to merge 2 commits intoprestodb:mainfrom
unidevel:loadeljson
Open

Implement load ndjson files dumped by event listener#67
unidevel wants to merge 2 commits intoprestodb:mainfrom
unidevel:loadeljson

Conversation

@unidevel
Copy link
Copy Markdown
Contributor

No description provided.

@ethanyzhang ethanyzhang force-pushed the main branch 2 times, most recently from 6f32a1a to b8de6a7 Compare February 13, 2026 04:02
@ethanyzhang
Copy link
Copy Markdown
Collaborator

Hi @unidevel, can you provide an example json?

@unidevel
Copy link
Copy Markdown
Contributor Author

Sure, will update later.

@unidevel unidevel changed the title Implement load json files dumped by QueryCompletedEvent from event listener Implement load ndjson files dumped by event listener Feb 24, 2026
@unidevel unidevel force-pushed the loadeljson branch 2 times, most recently from 3704717 to 3063c0c Compare February 24, 2026 10:09
@unidevel unidevel force-pushed the loadeljson branch 2 times, most recently from dab55d0 to fc418a6 Compare February 24, 2026 10:37

func (m *MySQLRunRecorder) Start(_ context.Context, s *Stage) error {
recordNewRun := `INSERT INTO pbench_runs (run_name, cluster_fqdn, start_time, queries_ran, failed, mismatch, comment)
recordNewRun := `REPLACE INTO pbench_runs (run_name, cluster_fqdn, start_time, queries_ran, failed, mismatch, comment)
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

There is a chance when query failed, it will call event listener twice, thus it can generate the record with same id twice.

@unidevel unidevel force-pushed the loadeljson branch 2 times, most recently from 353e368 to b0b2434 Compare February 24, 2026 10:55
@unidevel
Copy link
Copy Markdown
Contributor Author

@ethanyzhang can you review again when you get a chance? Thanks.

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.

2 participants