Replies: 4 comments 20 replies
-
No, VectorDataReader reads data for a specific column. The result object contains one or more chunks (depending on the number of rows in the result set) and each chunk has a vector for each column. If the column returns a composite type (List, Struct) the vector has child vector(s) that contain data. In the case of List, there is one child vector and in the case of Struct one vector for each property of struct. |
Beta Was this translation helpful? Give feedback.
-
I've an issue with the consistency regarding the ClrTypes. DuckDBType.Timestamp => typeof(DateTime),
DuckDBType.Interval => typeof(DuckDBInterval),
DuckDBType.Date => typeof(DuckDBDateOnly),
DuckDBType.Time => typeof(DuckDBTimeOnly),
DuckDBType.HugeInt => typeof(BigInteger), I'm not sure why we are returning a |
Beta Was this translation helpful? Give feedback.
-
A bit perplex about this case: The original code in public override bool GetBoolean(int ordinal)
{
return GetByte(ordinal) != 0;
} after refactoring, to pass the tests, I had to switch back to public override bool GetBoolean(int ordinal)
{
return GetFieldData<bool>(ordinal);
} There was any reason to parse the boolean as a byte before? Am I missing something? (If yes we should change the tests because it's not capturing something). |
Beta Was this translation helpful? Give feedback.
-
I'm blocked somewhere with That wouldn't be a big problem to change this behavior but there is a test specifically testing this behavior (SelectEnumsAsNullable). What do we do? Back to the standard behavior or continue to cheat with the compiler? |
Beta Was this translation helpful? Give feedback.
-
Hi @Giorgi
Yesterday when trying to work on the PR, I was a bit struggling with the concept of VectorDataReader so I spent a few additional minutes to review this class.
If my understanding is correct a vector in DuckDB is more or less a row and the class VectorDataReader allows us to read the value of a single field of this row. Is it correct (conceptually)?
Beta Was this translation helpful? Give feedback.
All reactions