-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
This commit closes #834 by adding support for reading CSV files containing string columns into frames. Changes: - General support for string columns in Frames at kernel level: - String values can now be used as column value types within Frames, enhancing type support. - Support for reading string columns in Frames at kernel level: - The system now supports reading string values into Frames at the kernel level, ensuring better handling of mixed data types. - Support for reading string columns from CSV files into Frames in DaphneDSL: - When reading a CSV file with string columns, the value type for string columns should be set to "str" in the .meta file to ensure proper type recognition. Testing: New test cases have been added to validate the reading of CSV files containing string columns into Frames and constructing Frames with string columns, ensuring correct behavior and performance.
- Loading branch information
1 parent
9f27ac3
commit 649b2da
Showing
12 changed files
with
152 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
1,-1,"" | ||
2,-2, | ||
3,-3,"multi-line," | ||
4,-4,simple string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"numRows": 4, | ||
"numCols": 3, | ||
"schema": [ | ||
{ | ||
"label": "a", | ||
"valueType": "si8" | ||
}, | ||
{ | ||
"label": "b", | ||
"valueType": "ui8" | ||
}, | ||
{ | ||
"label": "c", | ||
"valueType": "str" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
// Test reading frame with string columns. | ||
|
||
print(readFrame("test/api/cli/io/ReadCsv3.csv")); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Frame(4x3, [a:int8_t, b:uint8_t, c:std::string]) | ||
1 255 | ||
2 254 | ||
3 253 multi-line, | ||
4 252 simple string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
1,-1,"" | ||
2,-2, | ||
3,-3,"multi-line," | ||
4,-4,simple string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"numRows": 4, | ||
"numCols": 3, | ||
"schema": [ | ||
{ | ||
"label": "a", | ||
"valueType": "si8" | ||
}, | ||
{ | ||
"label": "b", | ||
"valueType": "ui8" | ||
}, | ||
{ | ||
"label": "c", | ||
"valueType": "str" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters