@@ -343,6 +343,7 @@ CustomDecimalColumn Decimal(35, 5) NOT NULL,
343343 IntervalColumn Interval NOT NULL,
344344 JsonColumn Json NOT NULL,
345345 JsonDocumentColumn JsonDocument NOT NULL,
346+ YsonColumn Yson NOT NULL,
346347 Date32Column Date32 NOT NULL,
347348 Datetime64Column DateTime64 NOT NULL,
348349 Timestamp64Column Timestamp64 NOT NULL,
@@ -359,13 +360,13 @@ PRIMARY KEY (Int32Column)
359360 Int32Column, BoolColumn, Int64Column, Int16Column, Int8Column, FloatColumn, DoubleColumn,
360361 DefaultDecimalColumn, CustomDecimalColumn, Uint8Column, Uint16Column, Uint32Column,
361362 Uint64Column, TextColumn, BytesColumn, DateColumn, DatetimeColumn, TimestampColumn,
362- IntervalColumn, JsonColumn, JsonDocumentColumn, Date32Column, Datetime64Column,
363+ IntervalColumn, JsonColumn, JsonDocumentColumn, YsonColumn, Date32Column, Datetime64Column,
363364 Timestamp64Column, Interval64Column
364365 ) VALUES (
365366 @Int32Column, @BoolColumn, @Int64Column, @Int16Column, @Int8Column, @FloatColumn,
366367 @DoubleColumn, @DefaultDecimalColumn, @CustomDecimalColumn, @Uint8Column, @Uint16Column,
367368 @Uint32Column, @Uint64Column, @TextColumn, @BytesColumn, @DateColumn, @DatetimeColumn,
368- @TimestampColumn, @IntervalColumn, @JsonColumn, @JsonDocumentColumn, @Date32Column,
369+ @TimestampColumn, @IntervalColumn, @JsonColumn, @JsonDocumentColumn, @YsonColumn, @ Date32Column,
369370 @Datetime64Column, @Timestamp64Column, @Interval64Column
370371 );
371372 """ ,
@@ -392,6 +393,7 @@ PRIMARY KEY (Int32Column)
392393 new YdbParameter ( "IntervalColumn" , YdbDbType . Interval , TimeSpan . Zero ) ,
393394 new YdbParameter ( "JsonColumn" , YdbDbType . Json , "{}" ) ,
394395 new YdbParameter ( "JsonDocumentColumn" , YdbDbType . JsonDocument , "{}" ) ,
396+ new YdbParameter ( "YsonColumn" , YdbDbType . Yson , "{a=1u}"u8 . ToArray ( ) ) ,
395397 new YdbParameter ( "Date32Column" , YdbDbType . Date32 , DateTime . MinValue ) ,
396398 new YdbParameter ( "Datetime64Column" , YdbDbType . Datetime64 , DateTime . MinValue ) ,
397399 new YdbParameter ( "Timestamp64Column" , YdbDbType . Timestamp64 , DateTime . MinValue ) ,
@@ -407,7 +409,7 @@ PRIMARY KEY (Int32Column)
407409 Int32Column, BoolColumn, Int64Column, Int16Column, Int8Column, FloatColumn, DoubleColumn,
408410 DefaultDecimalColumn, CustomDecimalColumn, Uint8Column, Uint16Column, Uint32Column,
409411 Uint64Column, TextColumn, BytesColumn, DateColumn, DatetimeColumn, TimestampColumn,
410- IntervalColumn, JsonColumn, JsonDocumentColumn, Date32Column, Datetime64Column,
412+ IntervalColumn, JsonColumn, JsonDocumentColumn, YsonColumn, Date32Column, Datetime64Column,
411413 Timestamp64Column, Interval64Column
412414 FROM { tableName } ;
413415 """
@@ -435,10 +437,11 @@ PRIMARY KEY (Int32Column)
435437 Assert . Equal ( TimeSpan . Zero , ydbDataReader . GetInterval ( 18 ) ) ;
436438 Assert . Equal ( "{}" , ydbDataReader . GetJson ( 19 ) ) ;
437439 Assert . Equal ( "{}" , ydbDataReader . GetJsonDocument ( 20 ) ) ;
438- Assert . Equal ( DateTime . MinValue , ydbDataReader . GetDateTime ( 21 ) ) ;
440+ Assert . Equal ( "{a=1u}"u8 . ToArray ( ) , ydbDataReader . GetYson ( 21 ) ) ;
439441 Assert . Equal ( DateTime . MinValue , ydbDataReader . GetDateTime ( 22 ) ) ;
440442 Assert . Equal ( DateTime . MinValue , ydbDataReader . GetDateTime ( 23 ) ) ;
441- Assert . Equal ( TimeSpan . FromMilliseconds ( TimeSpan . MinValue . Milliseconds ) , ydbDataReader . GetInterval ( 24 ) ) ;
443+ Assert . Equal ( DateTime . MinValue , ydbDataReader . GetDateTime ( 24 ) ) ;
444+ Assert . Equal ( TimeSpan . FromMilliseconds ( TimeSpan . MinValue . Milliseconds ) , ydbDataReader . GetInterval ( 25 ) ) ;
442445 Assert . False ( ydbDataReader . Read ( ) ) ;
443446 await ydbDataReader . CloseAsync ( ) ;
444447
0 commit comments