Giter Club home page Giter Club logo

j2v's People

Contributors

kshitijvr93 avatar mborukhava avatar mzas avatar ruthmd avatar victorcuena avatar yomibazuaye avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

j2v's Issues

Adding column aliases

J2V outputs SQL without any column aliases. We want to add it.

Build functionality to surface a column alias
e.g. ROOT_ARRAY_ARRAY_FIELDNAME

So the produced SQL:

  • DATA.JSON:"payload":"statuses":"Address":"name"::string AS PAYLOAD_STATUSES_ADDRESS_NAME
  • And in the case of flattened arrays
    DATA.JSON:"payload":"statuses".VALUE:"Address":"name"::string AS PAYLOAD_STATUSES_ADDRESS_NAME

https://github.com/Cimpress-MCP/j2v/tree/column_aliases

Feature requests

Feature request:

  1. Add option to provide the column to be used for PK
  2. Add a couple of generic measures (MIN/MAX/COUNT) on a user specified column

Enable parsing JSONs with reserved chars in field names

Current functionality of J2V is limited to put field name in double quotes only when space is detected. According to the Snowflake's best practice of querying JSONs we can doublequote everything, and we need to do it.
https://docs.snowflake.net/manuals/user-guide/querying-semistructured.html

An example of path generated now (SQL output & Looker files) might look like:
DATA.payload:name:"Name in English"::string

After the change:
DATA."payload":"name":"Name in English"::string

During the development make sure that Snowflake rules are isolated from the main output generation logic.

Open API definition as input

J2V works well with examples, but examples often do not cover an entire data set. If we have already crafted a schema in another format (in this case, Open API), using that schema definition may be a helpful alternative or addition to JSON examples.

It could also help generate better Looker views by pulling descriptions from the external schema

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.