Commit 9fb873a
Fix GetRow() type handling, GetInt overflow, and timezone fallback in RpcDataSet
- Identify time column by tsBlockColumnIndex==-1 instead of TSDataType.TIMESTAMP
to correctly set RowRecord.Timestamps and preserve TIMESTAMP-typed value columns
- Return proper types for DATE (DateTime) and BLOB (byte[]) in GetRow()
to match RowRecord.ToBytes() expectations and prevent InvalidCastException
- Guard BLOB null with binary?.Data to avoid NullReferenceException
- Use checked cast in GetIntByTsBlockColumnIndex for time column to surface
OverflowException instead of silently returning truncated values
- Throw TimeZoneNotFoundException instead of silently falling back to
TimeZoneInfo.Local when zone ID cannot be resolved
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 6e2c057 commit 9fb873a
1 file changed
+20
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
414 | 414 | | |
415 | 415 | | |
416 | 416 | | |
417 | | - | |
| 417 | + | |
418 | 418 | | |
419 | 419 | | |
420 | 420 | | |
| |||
638 | 638 | | |
639 | 639 | | |
640 | 640 | | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
641 | 650 | | |
642 | 651 | | |
643 | 652 | | |
| |||
650 | 659 | | |
651 | 660 | | |
652 | 661 | | |
653 | | - | |
654 | | - | |
| 662 | + | |
655 | 663 | | |
656 | 664 | | |
657 | 665 | | |
| |||
661 | 669 | | |
662 | 670 | | |
663 | 671 | | |
| 672 | + | |
| 673 | + | |
664 | 674 | | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
665 | 678 | | |
666 | | - | |
| 679 | + | |
667 | 680 | | |
668 | 681 | | |
669 | 682 | | |
| |||
846 | 859 | | |
847 | 860 | | |
848 | 861 | | |
849 | | - | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
850 | 865 | | |
851 | 866 | | |
852 | 867 | | |
| |||
0 commit comments