예제 #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());
        }