Skip to content

Let HANA datasets run DC/DQD on the source and fail on incomplete cache builds - #3286

Open
p-hoffmann wants to merge 1 commit into
developfrom
p-hoffmann/cache-and-dc-hardening-develop
Open

Let HANA datasets run DC/DQD on the source and fail on incomplete cache builds#3286
p-hoffmann wants to merge 1 commit into
developfrom
p-hoffmann/cache-and-dc-hardening-develop

Conversation

@p-hoffmann

Copy link
Copy Markdown
Member

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

Source routing has dialect edge cases, the FTS completeness check can miss a missing macro, and new jobplugin tests are not discovered by CI.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Adds source-database execution for HANA DC/DQD flows and improves cache-build failure diagnostics.

Changes:

  • Propagates source-connection options through DC and DQD.
  • Adds FTS verification and DuckDB checkpointing.
  • Improves CDM and credential validation errors.
File summaries
File Description
plugins/functions/jobplugins/src/types.ts Adds the DC source-connection option.
plugins/functions/jobplugins/src/services/DqdService.ts Passes source routing to DQD.
plugins/functions/jobplugins/src/services/dcTarget.ts Resolves DC execution targets.
plugins/functions/jobplugins/src/services/dcTarget.test.ts Adds target-resolution tests.
plugins/functions/jobplugins/src/services/DataCharacterizationService.ts Applies DC source routing.
plugins/functions/analytics-svc/src/api/controllers/dbsvc.ts Improves CDM version errors.
plugins/flows/base/dqd_plugin/types.py Maps source routing to connection mode.
plugins/flows/base/dqd_plugin/tests/test_types.py Tests DQD connection selection.
plugins/flows/base/dqd_plugin/tests/__init__.py Initializes the test package.
plugins/flows/base/create_cachedb_file_plugin/utils.py Adds DuckDB checkpoint support.
plugins/flows/base/create_cachedb_file_plugin/fts.py Verifies and checkpoints FTS indexes.
plugins/flows/_shared_flow_utils/dao/daobase.py Rejects duplicate database credentials.
Review details
  • Files reviewed: 11/12 changed files
  • Comments generated: 4
  • Review effort level: Balanced

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +175 to +180
if not write_conn.fetchall():
raise RuntimeError(
f"FTS index '{database_name}.{index_schema}' is incomplete: its "
f"'stats' table is missing, so {index_schema}.match_bm25 does not "
f"exist. The index build for '{schema_name}.{table_name}' did not "
"finish; re-run it rather than treating the schema as built."
cohortDefinitionId,
releaseId,
releaseDate,
useSourceConnection: useSourceConnection ?? false,
// (which already uppercases for HANA and lowercases for postgres) -- only
// webapi datasets need the verbatim registered name.
return {
useSourceConnection: requestedUseSourceConnection,
assertEquals(target, { useSourceConnection: false, resultsSchema: null });
});

Deno.test("a non-webapi dataset can opt into the source connection", () => {
@p-hoffmann p-hoffmann changed the title Let HANA datasets run DC/DQD on the source and fail loudly on incomplete cache builds Let HANA datasets run DC/DQD on the source and fail on incomplete cache builds Sep 7, 2026
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