Giter VIP home page Giter VIP logo

sqltools-bigquery-driver's People

Contributors

archiewood avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

sqltools-bigquery-driver's Issues

Throws error when query returns no rows

To reproduce

Open a sql file, run

select * from [table] limit 0

Expected result

An empty table

Actual result

Query with errors. Please, check the error below.
Cannot convert undefined or null to object

image

Add another project on the sidebar with single service account

I have one service account connected to default project, but that service account also have permission to another projects too.
It seems like I can only add default project for the service account. please add a functionality to explore another projects on the side bar. thank you for the great project!

Sidebar improvements

Add

  • Connection details (project name etc)
  • icons for data types as columns?
  • names of data types?

See snowflake for inspiration

image

Remove

  • No need for top level database icon?
    • This maps to a "project" and only one can be connected to at a time in this implementation
  • No need for "Tables" and "Views" folders - they can be distinguished by icons
CleanShot 2023-08-16 at 22 44 39@2x

IntelliSense

For auto-completion of datasets (schemas), tables, columns etc

Query Cost Estimation

I'm looking to make a contribution to the project.

@archiewood have you looked into adding the query cost estimation to the plugin?

image
from google.cloud import bigquery

# Construct a BigQuery client object.
client = bigquery.Client()

# Set your query here
query = """
SELECT name, count
FROM `table`
WHERE state = 'TX'
"""

# Set up the dry run query configuration
job_config = bigquery.QueryJobConfig(dry_run=True, use_query_cache=False)

# API request - dry run query
dry_run_query_job = client.query(query, job_config=job_config)

# A dry run query does not provide a row iterator, only statistics
print(f"This query will process {dry_run_query_job.total_bytes_processed} bytes.")

Disable autocomplete

I didn't see this in the docs--is there a straightforward way to disable keyword autocomplete? Or only begin after a character for that keyword is typed?

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.