dataform-co / dataform

Dataform is a framework for managing SQL based data operations in BigQuery
https://cloud.google.com/dataform/docs
Apache License 2.0
848 stars 160 forks source link

Make it possible to fully-specify a require() path #338

Closed BenBirt closed 5 years ago

BenBirt commented 5 years ago

e.g. if you are trying to require /includes/subdir/functions.js in /definitions/script.sqlx, you should be able to write:

js {
  const functions = require('includes/subdir/functions.js');
}

not

js {
  const functions = require('../includes/subdir/functions.js');
}
BenBirt commented 5 years ago

dup of https://github.com/dataform-co/dataform/issues/231