heavyai / metis

Tools for massively parallel and multi-variate data exploration
Other
39 stars 9 forks source link

Extensible and Modular Parser and Writer #22

Closed mrblueblue closed 7 years ago

mrblueblue commented 7 years ago

The goal of this feature is to expose the SQL writer as a module that can be extended by the user.

The user would be able to declare a new type of transform or expression by registering a "definition" of it, along with a function that parses it.

const writer = createSQLWriter()
writer.registerParser(typeDef, parser)
writer.writeSQL(DataState)

This would be the same writer module used internally by the graph instance.

const graph = createGraph()
graph.getWriter().registerParser(transformDef, parser)
mrblueblue commented 7 years ago

fixed by https://github.com/mapd/mapd-data-layer/pull/23