Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
loicknuchel committed Feb 8, 2024
1 parent 5df3fe7 commit 9c4fbed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libs/connector-snowflake/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
},
"dependencies": {
"@azimutt/database-types": "^0.0.14",
"@azimutt/json-infer-schema": "0.0.7",
"@azimutt/json-infer-schema": "^0.0.7",
"snowflake-sdk": "1.9.3"
},
"devDependencies": {
Expand Down
4 changes: 3 additions & 1 deletion libs/connector-snowflake/src/common/query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ type ColumnInfo = {
}

async function getColumnInfos(conn: Conn, tableIds: number[]): Promise<ColumnInfo[]> {
// FIXME
/* FIXME
if (tableIds.length > 0) {
return conn.query<ColumnInfo>(`
SELECT n.oid as schema_id,
Expand All @@ -48,6 +48,8 @@ async function getColumnInfos(conn: Conn, tableIds: number[]): Promise<ColumnInf
} else {
return []
}
*/
return Promise.reject(new Error('Not implemented'))
}

function buildColumns(fields: QueryResultField[], columnInfos: ColumnInfo[]): DatabaseQueryResultsColumn[] {
Expand Down

0 comments on commit 9c4fbed

Please sign in to comment.