Skip to content

Commit 9d08243

Browse files
suryaiyer95claude
andcommitted
fix: [AI-5975] add missing dialect fields to test args for type-check
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent ddf53be commit 9d08243

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

packages/opencode/test/altimate/tool-error-propagation-complete.test.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ describeToolErrorPropagation({
117117
dispatcherMethod: "altimate_core.check",
118118
importPath: "../../src/altimate/tools/altimate-core-check",
119119
exportName: "AltimateCoreCheckTool",
120-
args: { sql: "SELECT 1" },
120+
args: { sql: "SELECT 1", dialect: "snowflake" },
121121
successResponse: { success: true, data: { validation: { valid: true }, lint: { clean: true }, safety: { safe: true }, pii: { findings: [] } } },
122122
dataErrorResponse: { success: true, data: { error: "Internal check engine failure" } },
123123
})
@@ -354,7 +354,7 @@ describe("sql_fix conditional error spread", () => {
354354
const { SqlFixTool } = await import("../../src/altimate/tools/sql-fix")
355355
const tool = await SqlFixTool.init()
356356
const result = await tool.execute(
357-
{ sql: "SELECT foo FROM t", error_message: "Column 'foo' not found" },
357+
{ sql: "SELECT foo FROM t", error_message: "Column 'foo' not found", dialect: "snowflake" },
358358
stubCtx(),
359359
)
360360

@@ -375,7 +375,7 @@ describe("sql_fix conditional error spread", () => {
375375
const { SqlFixTool } = await import("../../src/altimate/tools/sql-fix")
376376
const tool = await SqlFixTool.init()
377377
const result = await tool.execute(
378-
{ sql: "SELCT", error_message: "syntax error" },
378+
{ sql: "SELCT", error_message: "syntax error", dialect: "snowflake" },
379379
stubCtx(),
380380
)
381381

@@ -433,7 +433,7 @@ describe("altimate_core_grade null data guard", () => {
433433

434434
const { AltimateCoreGradeTool } = await import("../../src/altimate/tools/altimate-core-grade")
435435
const tool = await AltimateCoreGradeTool.init()
436-
const result = await tool.execute({ sql: "SELECT 1" }, stubCtx())
436+
const result = await tool.execute({ sql: "SELECT 1", dialect: "snowflake" }, stubCtx())
437437

438438
expect(result.metadata.error).toBe("Grading engine unavailable")
439439
expect(telemetryWouldExtract(result.metadata)).not.toBe("unknown error")
@@ -455,7 +455,7 @@ describe("lineage_check error propagation", () => {
455455

456456
const { LineageCheckTool } = await import("../../src/altimate/tools/lineage-check")
457457
const tool = await LineageCheckTool.init()
458-
const result = await tool.execute({ sql: "SELECT 1" }, stubCtx())
458+
const result = await tool.execute({ sql: "SELECT 1", dialect: "snowflake" }, stubCtx())
459459

460460
expect(result.metadata.success).toBe(false)
461461
expect(result.metadata.error).toBe("Lineage engine not initialized")
@@ -469,7 +469,7 @@ describe("lineage_check error propagation", () => {
469469

470470
const { LineageCheckTool } = await import("../../src/altimate/tools/lineage-check")
471471
const tool = await LineageCheckTool.init()
472-
const result = await tool.execute({ sql: "SELECT 1" }, stubCtx())
472+
const result = await tool.execute({ sql: "SELECT 1", dialect: "snowflake" }, stubCtx())
473473

474474
expect(result.metadata.error).toContain("Partial lineage")
475475
})
@@ -481,7 +481,7 @@ describe("lineage_check error propagation", () => {
481481

482482
const { LineageCheckTool } = await import("../../src/altimate/tools/lineage-check")
483483
const tool = await LineageCheckTool.init()
484-
const result = await tool.execute({ sql: "SELECT 1" }, stubCtx())
484+
const result = await tool.execute({ sql: "SELECT 1", dialect: "snowflake" }, stubCtx())
485485

486486
expect(result.metadata.success).toBe(false)
487487
expect(result.metadata.error).toBe("NAPI crash")
@@ -496,7 +496,7 @@ describe("lineage_check error propagation", () => {
496496

497497
const { LineageCheckTool } = await import("../../src/altimate/tools/lineage-check")
498498
const tool = await LineageCheckTool.init()
499-
const result = await tool.execute({ sql: "SELECT 1" }, stubCtx())
499+
const result = await tool.execute({ sql: "SELECT 1", dialect: "snowflake" }, stubCtx())
500500

501501
expect(result.metadata.error).toBe("Engine crashed")
502502
})

0 commit comments

Comments
 (0)