@@ -224,7 +224,7 @@ suite("@dataform/api", () => {
224224 //
225225 // op_d +---> tab_a
226226 const TEST_GRAPH_WITH_TAGS : dataform . ICompiledGraph = dataform . CompiledGraph . create ( {
227- projectConfig : { warehouse : "bigquery" } ,
227+ projectConfig : { warehouse : "bigquery" , defaultLocation : "US" } ,
228228 operations : [
229229 {
230230 target : { schema : "schema" , name : "op_a" } ,
@@ -260,7 +260,7 @@ suite("@dataform/api", () => {
260260
261261 test ( "prune removes inline tables" , async ( ) => {
262262 const graph : dataform . ICompiledGraph = dataform . CompiledGraph . create ( {
263- projectConfig : { warehouse : "bigquery" } ,
263+ projectConfig : { warehouse : "bigquery" , defaultLocation : "US" } ,
264264 tables : [
265265 { target : { schema : "schema" , name : "a" } , type : "table" } ,
266266 {
@@ -379,7 +379,7 @@ suite("@dataform/api", () => {
379379 suite ( "sql_generating" , ( ) => {
380380 test ( "bigquery_incremental" , ( ) => {
381381 const graph = dataform . CompiledGraph . create ( {
382- projectConfig : { warehouse : "bigquery" , defaultDatabase : "deeb" } ,
382+ projectConfig : { warehouse : "bigquery" , defaultDatabase : "deeb" , defaultLocation : "US" } ,
383383 tables : [
384384 {
385385 target : {
@@ -428,7 +428,7 @@ suite("@dataform/api", () => {
428428
429429 test ( "bigquery_materialized" , ( ) => {
430430 const testGraph : dataform . ICompiledGraph = dataform . CompiledGraph . create ( {
431- projectConfig : { warehouse : "bigquery" , defaultDatabase : "deeb" } ,
431+ projectConfig : { warehouse : "bigquery" , defaultDatabase : "deeb" , defaultLocation : "US" } ,
432432 tables : [
433433 {
434434 target : {
@@ -492,7 +492,7 @@ suite("@dataform/api", () => {
492492
493493 test ( "snowflake_materialized" , ( ) => {
494494 const testGraph : dataform . ICompiledGraph = dataform . CompiledGraph . create ( {
495- projectConfig : { warehouse : "snowflake" } ,
495+ projectConfig : { warehouse : "snowflake" } ,
496496 tables : [
497497 {
498498 target : {
@@ -524,8 +524,7 @@ suite("@dataform/api", () => {
524524 tasks : [
525525 {
526526 type : "statement" ,
527- statement :
528- `create or replace materialized view "schema"."materialized" as select 1 as test`
527+ statement : `create or replace materialized view "schema"."materialized" as select 1 as test`
529528 }
530529 ] ,
531530 dependencyTargets : [ ] ,
@@ -716,7 +715,7 @@ suite("@dataform/api", () => {
716715
717716 test ( "bigquery_partitionby" , ( ) => {
718717 const testGraph : dataform . ICompiledGraph = dataform . CompiledGraph . create ( {
719- projectConfig : { warehouse : "bigquery" , defaultDatabase : "deeb" } ,
718+ projectConfig : { warehouse : "bigquery" , defaultDatabase : "deeb" , defaultLocation : "US" } ,
720719 tables : [
721720 {
722721 target : {
@@ -783,7 +782,7 @@ suite("@dataform/api", () => {
783782
784783 test ( "bigquery_options" , ( ) => {
785784 const testGraph : dataform . ICompiledGraph = dataform . CompiledGraph . create ( {
786- projectConfig : { warehouse : "bigquery" , defaultDatabase : "deeb" } ,
785+ projectConfig : { warehouse : "bigquery" , defaultDatabase : "deeb" , defaultLocation : "US" } ,
787786 tables : [
788787 {
789788 target : {
@@ -795,8 +794,8 @@ suite("@dataform/api", () => {
795794 bigquery : {
796795 partitionBy : "DATE(test)" ,
797796 clusterBy : [ ] ,
798- partitionExpirationDays : 1 ,
799- requirePartitionFilter : true
797+ partitionExpirationDays : 1 ,
798+ requirePartitionFilter : true
800799 }
801800 } ,
802801 {
@@ -852,7 +851,7 @@ suite("@dataform/api", () => {
852851
853852 test ( "bigquery_clusterby" , ( ) => {
854853 const testGraph : dataform . ICompiledGraph = dataform . CompiledGraph . create ( {
855- projectConfig : { warehouse : "bigquery" , defaultDatabase : "deeb" } ,
854+ projectConfig : { warehouse : "bigquery" , defaultDatabase : "deeb" , defaultLocation : "US" } ,
856855 tables : [
857856 {
858857 target : {
@@ -919,7 +918,7 @@ suite("@dataform/api", () => {
919918
920919 test ( "bigquery_additional_options" , ( ) => {
921920 const testGraph : dataform . ICompiledGraph = dataform . CompiledGraph . create ( {
922- projectConfig : { warehouse : "bigquery" , defaultDatabase : "deeb" } ,
921+ projectConfig : { warehouse : "bigquery" , defaultDatabase : "deeb" , defaultLocation : "US" } ,
923922 tables : [
924923 {
925924 target : {
@@ -929,10 +928,10 @@ suite("@dataform/api", () => {
929928 type : "table" ,
930929 query : "select 1 as test" ,
931930 bigquery : {
932- additionalOptions : {
933- partition_expiration_days : "1" ,
934- " require_partition_filter" : "true" ,
935- friendly_name : '"friendlyName"' ,
931+ additionalOptions : {
932+ partition_expiration_days : "1" ,
933+ require_partition_filter : "true" ,
934+ friendly_name : '"friendlyName"'
936935 }
937936 }
938937 } ,
@@ -958,7 +957,7 @@ suite("@dataform/api", () => {
958957 {
959958 type : "statement" ,
960959 statement :
961- " create or replace table `deeb.schema.additional_options` OPTIONS(partition_expiration_days=1,require_partition_filter=true,friendly_name=\ "friendlyName\ ")as select 1 as test"
960+ ' create or replace table `deeb.schema.additional_options` OPTIONS(partition_expiration_days=1,require_partition_filter=true,friendly_name="friendlyName")as select 1 as test'
962961 }
963962 ] ,
964963 dependencyTargets : [ ] ,
@@ -1114,7 +1113,8 @@ suite("@dataform/api", () => {
11141113 warehouse : "bigquery" ,
11151114 defaultSchema : "foo" ,
11161115 assertionSchema : "bar" ,
1117- defaultDatabase : "database"
1116+ defaultDatabase : "database" ,
1117+ defaultLocation : "US"
11181118 } ,
11191119 runConfig : {
11201120 fullRefresh : true
@@ -1469,7 +1469,8 @@ suite("@dataform/api", () => {
14691469 projectConfig : {
14701470 warehouse : "bigquery" ,
14711471 defaultSchema : "foo" ,
1472- assertionSchema : "bar"
1472+ assertionSchema : "bar" ,
1473+ defaultLocation : "US"
14731474 } ,
14741475 warehouseState : {
14751476 tables : [ ]
@@ -1530,7 +1531,8 @@ suite("@dataform/api", () => {
15301531 projectConfig : {
15311532 warehouse : "bigquery" ,
15321533 defaultSchema : "foo" ,
1533- assertionSchema : "bar"
1534+ assertionSchema : "bar" ,
1535+ defaultLocation : "US"
15341536 } ,
15351537 warehouseState : {
15361538 tables : [ ]
0 commit comments