Esempio n. 1
0
        static void DataTableTest()
        {
            StringBuilder csv = new StringBuilder();

            using (var r = new ChoParquetReader(@"C:\Projects\GitHub\ChoETL\src\Test\ChoParquetWriterTest\bin\Debug\netcoreapp2.1\test1.parquet")
                           .ParquetOptions(o => o.TreatByteArrayAsString = true))
            {
                var dt = r.AsDataTable();
            }

            Console.WriteLine(csv.ToString());
        }
Esempio n. 2
0
        static void DataTableTest()
        {
            StringBuilder csv = new StringBuilder();

            using (var r = new ChoParquetReader(@"test1.parquet")
                           .ParquetOptions(o => o.TreatByteArrayAsString = true))
            {
                var dt = r.AsDataTable();
            }

            Console.WriteLine(csv.ToString());
        }
Esempio n. 3
0
        static void ByteArrayTest()
        {
            StringBuilder csv = new StringBuilder();

            using (var r = new ChoParquetReader(@"C:\Projects\GitHub\ChoETL\src\Test\ChoParquetWriterTest\bin\Debug\netcoreapp2.1\ByteArrayTest.parquet")
                           .ParquetOptions(o => o.TreatByteArrayAsString = true)
                   )
            {
                var dt = r.AsDataTable("x");
                Console.WriteLine(ChoJSONWriter.ToText(dt));
                return;

                using (var w = new ChoCSVWriter(csv)
                               .WithFirstLineHeader()
                               .UseNestedKeyFormat(false)
                       )
                    w.Write(r);
            }

            Console.WriteLine(csv.ToString());
        }