Esempio n. 1
0
        public void TestSignaturesV3_1_X()
        {
            string tableName = "output_table";

            WithTable(
                _spark,
                new string[] { tableName },
                () =>
            {
                using var tempDirectory = new TemporaryDirectory();
                var intMemoryStream     = new MemoryStream <int>(_spark);
                DataStreamWriter dsw    = intMemoryStream
                                          .ToDF()
                                          .WriteStream()
                                          .Format("parquet")
                                          .Option("checkpointLocation", tempDirectory.Path);
                Assert.IsType <StreamingQuery>(dsw.ToTable(tableName));
            });
        }