Skip to content

Commit

Permalink
Delete console
Browse files Browse the repository at this point in the history
  • Loading branch information
minodisk committed Oct 21, 2022
1 parent 0eb90e0 commit 8848bda
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 0 additions & 3 deletions packages/extension/src/tree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,6 @@ export const createTree = ({
}

if (element.contextValue === "dataset") {
console.log("table:", element.ref);
const client = clients.get(element.ref.projectId);
if (!client) {
return [];
Expand All @@ -189,13 +188,11 @@ export const createTree = ({
}

if (element.contextValue === "table") {
console.log("field:", element.ref);
const client = clients.get(element.ref.projectId);
if (!client) {
return [];
}
const fields = await client.getFields(element.ref);
console.log("fields:", fields);
return fields.map((ref) => {
const id = `${ref.projectId}:${ref.datasetId}.${ref.tableId}::${ref.fieldId}`;
const elem: FieldElement = {
Expand Down
5 changes: 5 additions & 0 deletions packages/misc/queries/json.bqsql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
create or replace table
`minodisk-api.testing.create_or_replace` as
select
1 as a,
JSON '{"name": "Alice", "age": 30}' as b;

0 comments on commit 8848bda

Please sign in to comment.