Skip to content

Commit 757dfdc

Browse files
committed
Remove the if block since release is done
1 parent 67a4822 commit 757dfdc

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

handwritten/bigquery/src/bigquery.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2858,18 +2858,6 @@ export class BigQueryTimestamp {
28582858
} else if (typeof value === 'string') {
28592859
if (/^\d{4}-\d{1,2}-\d{1,2}/.test(value)) {
28602860
pd = new PreciseDate(value);
2861-
if (process.env.BIGQUERY_PICOSECOND_SUPPORT === 'true') {
2862-
if (value.match(/\.\d{10,}/) && !Number.isNaN(pd.getTime())) {
2863-
/*
2864-
TODO:
2865-
When https://github.com/googleapis/nodejs-precise-date/pull/302
2866-
is released and we have full support for picoseconds in PreciseData
2867-
then we can remove this if block.
2868-
*/
2869-
this.value = value;
2870-
return;
2871-
}
2872-
}
28732861
} else {
28742862
const floatValue = Number.parseFloat(value);
28752863
if (!Number.isNaN(floatValue)) {

0 commit comments

Comments
 (0)