@dataform/core
Advanced tools
Comparing version 0.0.2-alpha.3 to 0.0.2-alpha.4
@@ -79,6 +79,3 @@ "use strict"; | ||
var tree = parser.parse(this.proto.query, {}); | ||
var parsedColumns = tree.statement[0].result.map(res => res.alias); | ||
if (parsedColumns.indexOf(null) < 0) { | ||
this.proto.parsedColumns = parsedColumns; | ||
} | ||
this.proto.parsedColumns = tree.statement[0].result.map(res => res.alias).map(column => column || "*"); | ||
} | ||
@@ -85,0 +82,0 @@ catch (e) { |
@@ -110,3 +110,3 @@ import { Dataform } from "./index"; | ||
var tree = parser.parse(this.proto.query, {}); | ||
this.proto.parsedColumns = tree.statement[0].result.map(res => res.alias).filter(column => !!column); | ||
this.proto.parsedColumns = tree.statement[0].result.map(res => res.alias).map(column => column || "*"); | ||
} catch (e) { | ||
@@ -113,0 +113,0 @@ // There was an exception parsing the columns, ignore. |
{ | ||
"name": "@dataform/core", | ||
"version": "0.0.2-alpha.3", | ||
"version": "0.0.2-alpha.4", | ||
"description": "Dataform core API.", | ||
@@ -8,3 +8,3 @@ "main": "build/index.js", | ||
"dependencies": { | ||
"@dataform/protos": "^0.0.2-alpha.3", | ||
"@dataform/protos": "^0.0.2-alpha.4", | ||
"protobufjs": "^6.8.8" | ||
@@ -15,3 +15,3 @@ }, | ||
}, | ||
"gitHead": "0acf08049fca08341fc748040931da6531656269" | ||
"gitHead": "59230aea41e1a3e4636dcf665d0d3f638e48d51a" | ||
} |
Sorry, the diff of this file is not supported yet
389214
7391