mirror of
https://github.com/Kaelio/ktx.git
synced 2026-06-10 08:05:14 +02:00
chore(context): verify warehouse verification tools
This commit is contained in:
parent
b359b35de6
commit
ec4a1f8590
3 changed files with 7 additions and 3 deletions
|
|
@ -9,7 +9,7 @@ const discoverDataInputSchema = z.object({
|
|||
sourceName: z.string().optional(),
|
||||
});
|
||||
|
||||
type DiscoverDataInput = z.infer<typeof discoverDataInputSchema>;
|
||||
type DiscoverDataInput = z.input<typeof discoverDataInputSchema>;
|
||||
|
||||
export interface DiscoverDataStructured {
|
||||
wiki: unknown | null;
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ const sqlExecutionInputSchema = z.object({
|
|||
rowLimit: z.number().int().positive().max(1000).optional().default(100),
|
||||
});
|
||||
|
||||
type SqlExecutionInput = z.infer<typeof sqlExecutionInputSchema>;
|
||||
type SqlExecutionInput = z.input<typeof sqlExecutionInputSchema>;
|
||||
|
||||
export interface SqlExecutionStructured {
|
||||
headers: string[];
|
||||
|
|
|
|||
|
|
@ -245,7 +245,11 @@ export class WarehouseCatalogService {
|
|||
comment: table.comment,
|
||||
description: table.description ?? firstDescription(table.descriptions),
|
||||
rowCount: profileTable?.rowCount ?? table.estimatedRows ?? null,
|
||||
columns: table.columns.map((column) => {
|
||||
columns: table.columns.map((rawColumn) => {
|
||||
const column = rawColumn as KtxSchemaColumn & {
|
||||
description?: string | null;
|
||||
descriptions?: Record<string, string>;
|
||||
};
|
||||
const profileColumn =
|
||||
profileColumns[columnKey(table, column.name)] ??
|
||||
Object.entries(profileColumns).find(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue