Replies: 5 comments
-
I also tried this
|
Beta Was this translation helpful? Give feedback.
-
Find my complete program below: [HttpGet("[Action]/{dbName}/{tbleName}")]
|
Beta Was this translation helpful? Give feedback.
-
Also how to handle nullable bit(bool in c#) in sql? how to remove null values from fields? |
Beta Was this translation helpful? Give feedback.
-
in regard to GUID, parquet doesn't support natively. hence ChoETL convert them to string, store them. |
Beta Was this translation helpful? Give feedback.
-
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"); } }
Beta Was this translation helpful? Give feedback.
All reactions