Giter Club home page Giter Club logo

streakdevelopertools's Introduction

Streak Developer Tools

The Streak Developer Tools (SDT) is a chrome extension that currently adds functionality to BigQuery (see features below) and in the future will add other tools used internally at Streak.com.

If you just want the extension - simply download from the Chrome Web Store, you'll also get automatic updates.


BigQuery Tools

###Save Named Queries

We felt the need to be able save queries and run them again later. While the query history in BigQuery is nice, it's sometimes hard to parse all the queries to find the one you want. We added a section in the left sidebar for saved queries.

To save a query simply type it into the query box. Also, make sure you add one line to the query which is a comment (starts with '--'). Whatever is in that comment will be the name of the saved query. Next, hit the save query button. It's as simple as that. This stores the query in your local storage so it is not shared with other users of the project and will not persist if you clear your local storage. We may store this online in the future.


Alt text

###Query Across Datasets

At Streak, we have several tables in a dataset representing log information. Often we want to query across the entire dataset. While we could manually type all of the tables into the query, we added an option to the dataset drop down that does that for you. Simply select "Query Dataset" and the query box will be filled in for you with all the tables in the dataset.


Alt text

###Show Cost of Each Query

We also added the ability to see how much each query that you ran costs. Once the query completes, we added the cost (in US cents) next to the summary status of the query. The cost is calculated based on $0.035/GB processed.


Alt text

###Expand Multi-line Results

Since we store a lot of log data inside of BigQuery, including stack traces, many of our fields are multi-line strings which BigQuery doesn't display very well. The SDT allows you to click on any result row and expand it to show multi-line strings. Simply click on the row number in the results table to toggle multi-line on and off.


Alt text

In order to put multi-line strings into BigQuery, make sure that your line endings are '\r' and not '\n' as those aren't supported by BigQuery. Insert All Columns into SELECT Statements

###Automatically Convert Timestamps to Human Readable Format

AppEngine and BigQuery store timestamps as epoch time which is great for computers and computation, but not so good for a human to read. The extension automatically finds, parses and replaces epoch timestamps with a human friendly date/time rendering.


Alt text

###Insert All Columns into SELECT Statements

Sometimes you want to select every column in your query but typing each of them out manually takes time especially for tables with a large number of columns. In the schema description for a table, we've added a final yellow field called "Add All Columns" which you can press to insert all of the column names into your query.


Alt text

streakdevelopertools's People

Contributors

aleemstreak avatar

Stargazers

 avatar

Watchers

 avatar  avatar

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.