From c6c556cc0a9cb5f7831d2baa4b21f904a2557c6b Mon Sep 17 00:00:00 2001 From: Michael Toy <66150587+mtoy-googly-moogly@users.noreply.github.com> Date: Thu, 16 Jan 2025 13:16:39 -0800 Subject: [PATCH] make schemaForExplain protected --- packages/malloy-db-trino/src/index.ts | 1 - packages/malloy-db-trino/src/trino_connection.ts | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/malloy-db-trino/src/index.ts b/packages/malloy-db-trino/src/index.ts index 30cdc89db..bfa4d9240 100644 --- a/packages/malloy-db-trino/src/index.ts +++ b/packages/malloy-db-trino/src/index.ts @@ -26,6 +26,5 @@ export { PrestoConnection, TrinoConnection, TrinoPrestoConnection, - TrinoPrestoSchemaParser, } from './trino_connection'; export {TrinoExecutor} from './trino_executor'; diff --git a/packages/malloy-db-trino/src/trino_connection.ts b/packages/malloy-db-trino/src/trino_connection.ts index c006e4922..3f65754a9 100644 --- a/packages/malloy-db-trino/src/trino_connection.ts +++ b/packages/malloy-db-trino/src/trino_connection.ts @@ -447,7 +447,7 @@ export class PrestoConnection extends TrinoPrestoConnection { this.schemaFromExplain(explainResult, structDef); } - private schemaFromExplain( + protected schemaFromExplain( explainResult: MalloyQueryData, structDef: StructDef ) { @@ -532,7 +532,7 @@ export class TrinoConnection extends TrinoPrestoConnection { * ARRAY_TYPE: ARRAY '(' TYPE ')' * REC_TYPE: REC '(' "name" TYPE (, "name" TYPE)* ')' */ -export class TrinoPrestoSchemaParser extends TinyParser { +class TrinoPrestoSchemaParser extends TinyParser { constructor( readonly input: string, readonly dialect: Dialect