Replies: 5 comments
|
I also tried this
|
0 replies
|
Find my complete program below: [HttpGet("[Action]/{dbName}/{tbleName}")] |
0 replies
|
Also how to handle nullable bit(bool in c#) in sql? how to remove null values from fields? |
0 replies
|
in regard to GUID, parquet doesn't support natively. hence ChoETL convert them to string, store them. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
Hi,
I am trying to set datatype to Guid via WithField but it is always set as string
using (SqlConnection conn = new SqlConnection(StreamExtensions.getConnectionString())) { using (Stream stream = new MemoryStream()) { conn.Open(); using SqlCommand cmd = conn.CreateCommand(); cmd.CommandText = queryDB; using (var reader = cmd.ExecuteReader()) { using (var w = new ChoParquetWriter(stream).WithField("BuildID", fieldType: typeof(Guid))) { w.Write(reader); } byte1 = stream.ReadAllBytes(); } conn.Close(); return File(byte1, "application/octet-stream", "test.parquet"); } }All reactions