示例#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());
        }
示例#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());
        }
示例#3
0
文件: Program.cs 项目: xman086/ChoETL
        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());
        }