We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 67a4822 commit 757dfdcCopy full SHA for 757dfdc
1 file changed
handwritten/bigquery/src/bigquery.ts
@@ -2858,18 +2858,6 @@ export class BigQueryTimestamp {
2858
} else if (typeof value === 'string') {
2859
if (/^\d{4}-\d{1,2}-\d{1,2}/.test(value)) {
2860
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
2873
} else {
2874
const floatValue = Number.parseFloat(value);
2875
if (!Number.isNaN(floatValue)) {
0 commit comments