@@ -27,6 +27,7 @@ package questdb_test
27
27
import (
28
28
"context"
29
29
"fmt"
30
+ "math"
30
31
"math/big"
31
32
"path/filepath"
32
33
"reflect"
@@ -417,11 +418,12 @@ func (suite *integrationTestSuite) TestE2EValidWrites() {
417
418
"double array" ,
418
419
testTable ,
419
420
func (s qdb.LineSender ) error {
420
- values1D := []float64 {1.0 , 2.0 , 3.0 , 4.0 , 5.0 }
421
- values2D := [][]float64 {{1.0 , 2.0 }, {3.0 , 4.0 }, {5.0 , 6.0 }}
422
- values3D := [][][]float64 {{{1.0 , 2.0 }, {3.0 , 4.0 }}, {{5.0 , 6.0 }, {7.0 , 8.0 }}}
421
+ values1D := []float64 {1.0 , 2.0 , 3.0 , 4.0 , 5.0 , math . NaN () }
422
+ values2D := [][]float64 {{1.0 , 2.0 }, {3.0 , 4.0 }, {5.0 , 6.0 }, { math . NaN (), math . NaN ()} }
423
+ values3D := [][][]float64 {{{1.0 , 2.0 }, {3.0 , 4.0 }}, {{5.0 , 6.0 }, {7.0 , math . NaN () }}}
423
424
arrayND , _ := qdb .NewNDArray [float64 ](2 , 2 , 1 , 2 )
424
425
arrayND .Fill (11.0 )
426
+ arrayND .Set (math .NaN (), 1 , 1 , 0 , 1 )
425
427
426
428
err := s .
427
429
Table (testTable ).
@@ -464,10 +466,10 @@ func (suite *integrationTestSuite) TestE2EValidWrites() {
464
466
},
465
467
Dataset : [][]interface {}{
466
468
{
467
- []interface {}{float64 (1 ), float64 (2 ), float64 (3 ), float64 (4 ), float64 (5 )},
468
- []interface {}{[]interface {}{float64 (1 ), float64 (2 )}, []interface {}{float64 (3 ), float64 (4 )}, []interface {}{float64 (5 ), float64 (6 )}},
469
- []interface {}{[]interface {}{[]interface {}{float64 (1 ), float64 (2 )}, []interface {}{float64 (3 ), float64 (4 )}}, []interface {}{[]interface {}{float64 (5 ), float64 (6 )}, []interface {}{float64 (7 ), float64 ( 8 ) }}},
470
- []interface {}{[]interface {}{[]interface {}{[]interface {}{float64 (11 ), float64 (11 )}}, []interface {}{[]interface {}{float64 (11 ), float64 (11 )}}}, []interface {}{[]interface {}{[]interface {}{float64 (11 ), float64 (11 )}}, []interface {}{[]interface {}{float64 (11 ), float64 ( 11 ) }}}},
469
+ []interface {}{float64 (1 ), float64 (2 ), float64 (3 ), float64 (4 ), float64 (5 ), nil },
470
+ []interface {}{[]interface {}{float64 (1 ), float64 (2 )}, []interface {}{float64 (3 ), float64 (4 )}, []interface {}{float64 (5 ), float64 (6 )}, [] interface {}{ nil , nil } },
471
+ []interface {}{[]interface {}{[]interface {}{float64 (1 ), float64 (2 )}, []interface {}{float64 (3 ), float64 (4 )}}, []interface {}{[]interface {}{float64 (5 ), float64 (6 )}, []interface {}{float64 (7 ), nil }}},
472
+ []interface {}{[]interface {}{[]interface {}{[]interface {}{float64 (11 ), float64 (11 )}}, []interface {}{[]interface {}{float64 (11 ), float64 (11 )}}}, []interface {}{[]interface {}{[]interface {}{float64 (11 ), float64 (11 )}}, []interface {}{[]interface {}{float64 (11 ), nil }}}},
471
473
"1970-01-01T00:00:00.000001Z" },
472
474
{
473
475
[]interface {}{},
0 commit comments