Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Profiling] Check that file type set byprofiling_output matches output type#19946

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
maiadegraaf wants to merge4 commits intoduckdb:main
base:main
Choose a base branch
Loading
frommaiadegraaf:profiling-file-override-bug

Conversation

@maiadegraaf
Copy link
Contributor

@maiadegraafmaiadegraaf commentedNov 26, 2025
edited
Loading

Add a check that makes sure that the file set byprofiling_output matches the output type set byenable_profiling.

# Both the file types and the outputs match!PRAGMA enable_profiling='json';PRAGMA profiling_output='/profiler.json';# Now the output doesn't match the file type anymore :(PRAGMA enable_profiling='html';-- Parser Error: Profiler file type (/profiler.json) must either have the same file extension as the profiling output type (html), or be a '.txt' file. Set 'profiling_output' to a 'html' file or run "RESET profiling_output" first.

This prevents unintended file overwrites, for example:

PRAGMA profiling_output='my_important_database.db';-- Parser Error: Invalid output file type: db

Pottential breaking change:

Since the default profiling output isquery_tree, if you set theprofiling_output to a different file type without first changing the profiling output type it will throw an error.

Closes:https://github.com/duckdblabs/duckdb-internal/issues/6469

@duckdb-draftbotduckdb-draftbot marked this pull request as draftNovember 28, 2025 12:14
@maiadegraafmaiadegraaf marked this pull request as ready for reviewNovember 28, 2025 12:43
@duckdb-draftbotduckdb-draftbot marked this pull request as draftNovember 28, 2025 14:15
@maiadegraafmaiadegraaf marked this pull request as ready for reviewNovember 28, 2025 14:15
@duckdb-draftbotduckdb-draftbot marked this pull request as draftNovember 28, 2025 16:17
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

1 more reviewer

@taniabogatschtaniabogatschtaniabogatsch approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

Needs DocumentationUse for issues or PRs that require changes in the documentation

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@maiadegraaf@taniabogatsch

[8]ページ先頭

©2009-2025 Movatter.jp