Skip to content

Commit a6ae660

Browse files
committed
chore(kernel): regenerate raw parameter types
Signed-off-by: Cathleen Yan <cathleen.yan@databricks.com>
1 parent b28e4dd commit a6ae660

2 files changed

Lines changed: 25 additions & 9 deletions

File tree

lib/kernel/KernelNativeLoader.ts

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ import type {
3434
ArrowBatch as NativeArrowBatch,
3535
ArrowSchema as NativeArrowSchema,
3636
ExecuteOptions as NativeExecuteOptions,
37+
RawParameterInput as NativeRawParameterInput,
3738
AsyncStatement as NativeAsyncStatement,
3839
AsyncResultHandle as NativeAsyncResultHandle,
3940
CancellableExecution as NativeCancellableExecution,
@@ -51,15 +52,10 @@ export type KernelArrowSchema = NativeArrowSchema;
5152
export type KernelConnection = NativeConnection;
5253
export type KernelStatement = NativeStatement;
5354

54-
// rawParams is available in the source-pinned kernel before its published types.
55-
export interface KernelNativeRawParameterInput {
56-
name?: string;
57-
sqlType: string;
58-
value?: string;
59-
}
60-
export type KernelNativeExecuteOptions = NativeExecuteOptions & {
61-
rawParams?: KernelNativeRawParameterInput[];
62-
};
55+
// Per-statement execution options and raw-parameter inputs come directly from
56+
// the generated kernel contract so the driver-side codec cannot drift.
57+
export type KernelNativeExecuteOptions = NativeExecuteOptions;
58+
export type KernelNativeRawParameterInput = NativeRawParameterInput;
6359

6460
// Async-submit surface: `Connection.submitStatement` returns an
6561
// `AsyncStatement` (status / awaitResult / cancel / close); `awaitResult`

native/kernel/index.d.ts

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)