Repository navigation
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #19128 +/- ##
============================================
+ Coverage 48.53% 48.73% +0.20%
Complexity 635 635
============================================
Files 5573 5574 +1
Lines 412215 412268 +53
Branches 54338 54366 +28
============================================
+ Hits 200059 200919 +860
+ Misses 212156 211349 -807 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Initial independent self-review — tree LOAD only. Table behavior was excluded as requested. Reviewed SHA: P2 — Native tree LOAD could ignore a disabled session auto-create policy (fixed). With global and LOAD auto-creation enabled, a session disabling auto-creation could still reach schema creation. The per-file dialect switch rebuilt No other actionable findings were identified in the scoped tree review. This was one review round; the repaired commit has not received a second independent review in this session. Verification:
The fix is committed and pushed, and both remote heads were confirmed. The PR remains draft because this round found a behavioral issue; a fresh independent tree-only review of the full current tree diff and relevant context is required before marking it ready. |
|
Independent re-review — tree LOAD auto-creation. Reviewed SHA: Findings: No actionable issues found in the full current tree LOAD diff and relevant context, including the preceding session-preservation and native list-schema fixes. The review covered native schema validation, mini-file conversion, Analyzer and scheduler fallback, asynchronous policy handoff, normal timeseries and template creation, and the related unit tests and Scan-to-Query regression. Table behavior was excluded as requested and retains its prior acceptance. Fixes: None needed. No source changes or new commits were made in this round. Verification and limits:
The actual source branch and PR head were confirmed to match the reviewed revision immediately before marking the entire PR ready for review. The resulting state was verified as open, non-draft. No update steps remain incomplete. |
|
Database auto-creation is still not covered by the policy. Table LOAD: LoadTsFileTableSchemaCache.createTableAndDatabaseIfNecessary() (L322) calls autoCreateTableDatabaseIfAbsent() whenever needToCreateDatabase, and that method (L353) only checks the global config — neither allowAutoCreateSchema nor the session flag. With global enabled + 'auto-create-schema'='false' (or enableAutoCreateSchema=false) + a missing database, LOAD still runs CREATE DATABASE, then fails table validation, leaving an empty database behind. |
|
@luoluoyuyu, addressed the database-policy comment in 0de7dcb04b1.
Verification:
For the Codecov report, this update adds targeted missing-database and conversion-error coverage. The report predates this follow-up; no updated coverage percentage is claimed here.
The fixes are committed and pushed. Independent re-review of the full updated PR remains pending. The PR remains open and non-draft, and discussions have been left unresolved. |
|




Description
LOAD can create missing schema even when auto-creation is disabled by the request or session. Honor the combined global, request, and session policy across tree and table LOAD paths while preserving shared client session state.
For tree LOAD, preserve the policy through native schema validation, mini-file conversion, Analyzer and scheduler fallbacks, normal timeseries creation, template extension, and template activation. For table LOAD, preserve it through native schema validation, mini-file conversion, Analyzer and scheduler fallbacks, and tablet rewrite. Asynchronous handoff retains the effective policy.
Native LOAD now checks this policy before creating missing databases, preventing empty-database side effects when auto-creation is disabled. A localized missing-database error bypasses tablet conversion. Existing databases and schema remain usable. Preserve the default enabled behavior and existing TAG-order, type-validation, partial-insert, and ordinary INSERT behavior.
Validation
This PR has: