@@ -354,6 +354,27 @@ describe('BigQuery', () => {
354354 assert . strictEqual ( res . totalRows , '100' ) ;
355355 } ) ;
356356
357+ it ( 'should query with skipParsing' , async ( ) => {
358+ const [ rows ] = await bigquery . query ( {
359+ query,
360+ skipParsing : true ,
361+ } ) ;
362+ assert . strictEqual ( rows . length , 100 ) ;
363+ // Raw rows have an 'f' property containing the fields
364+ assert . ok ( rows [ 0 ] . f ) ;
365+ assert . strictEqual ( typeof rows [ 0 ] . f [ 0 ] . v , 'string' ) ;
366+ } ) ;
367+
368+ it ( 'should query with skipParsing via Dataset.query' , async ( ) => {
369+ const [ rows ] = await dataset . query ( {
370+ query,
371+ skipParsing : true ,
372+ } ) ;
373+ assert . strictEqual ( rows . length , 100 ) ;
374+ assert . ok ( rows [ 0 ] . f ) ;
375+ assert . strictEqual ( typeof rows [ 0 ] . f [ 0 ] . v , 'string' ) ;
376+ } ) ;
377+
357378 it ( 'should query without jobs.query and return all PagedResponse as positional parameters' , async ( ) => {
358379 // force jobs.getQueryResult instead of fast query path
359380 const jobId = generateName ( 'job' ) ;
@@ -575,8 +596,9 @@ describe('BigQuery', () => {
575596 const QUERY = `SELECT * FROM \`${ table . id } \`` ;
576597 // eslint-disable-next-line @typescript-eslint/no-var-requires
577598 const SCHEMA = require ( '../../system-test/data/schema.json' ) ;
578- const TEST_DATA_FILE =
579- require . resolve ( '../../system-test/data/location-test-data.json' ) ;
599+ const TEST_DATA_FILE = require . resolve (
600+ '../../system-test/data/location-test-data.json' ,
601+ ) ;
580602
581603 before ( async ( ) => {
582604 // create a dataset in a certain location will cascade the location
@@ -879,8 +901,9 @@ describe('BigQuery', () => {
879901 } ) ;
880902
881903 describe ( 'BigQuery/Table' , ( ) => {
882- const TEST_DATA_JSON_PATH =
883- require . resolve ( '../../system-test/data/kitten-test-data.json' ) ;
904+ const TEST_DATA_JSON_PATH = require . resolve (
905+ '../../system-test/data/kitten-test-data.json' ,
906+ ) ;
884907
885908 it ( 'should have created the correct schema' , ( ) => {
886909 assert . deepStrictEqual ( table . metadata . schema . fields , SCHEMA ) ;
0 commit comments