| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
@Zhengcy05 Thank you for your contribution~ However, this PR is too tiny to run the test cases. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Ⅰ. Describe what this PR did
This PR fixes the global @Explain propagation logic in AbstractObjectParser.
Previously, root-level @Explain was parsed correctly as a global option, but when the framework applied global defaults to table objects, it checked globalSchema instead of globalExplain before injecting KEY_EXPLAIN. As a result, global @Explain only worked when global @Schema was also present.
This change updates the condition to check the global explain flag itself, so root-level @Explain now works as documented without depending on @Schema.
Ⅱ. Does this pull request fix one issue?
fixes #851
Ⅲ. Why don't you add test cases (unit test/integration test)?
This repository currently does not have an existing test structure under APIJSONORM/src/test, and this PR keeps the change minimal and focused to a one-line bug fix.
The change was verified by compilation and by tracing the request parsing path against the reported issue scenario.
Ⅳ. Describe how to verify it
Run:
Ⅴ. Special notes for reviews
This is a minimal fix that only corrects the propagation condition for global @Explain.
It does not change:
subquery behavior
object-level @Explain behavior
any SQL generation logic beyond the global default injection path