@@ -178,6 +178,30 @@ public StreamingQuery Start(string path = null)
178
178
return new StreamingQuery ( ( JvmObjectReference ) _jvmObject . Invoke ( "start" ) ) ;
179
179
}
180
180
181
+ /// <summary>
182
+ /// Starts the execution of the streaming query, which will continually output results to the
183
+ /// given table as new data arrives. The returned <see cref="StreamingQuery"/> object can be
184
+ /// used to interact with the stream.
185
+ /// </summary>
186
+ /// <remarks>
187
+ /// For v1 table, partitioning columns provided by <see cref="PartitionBy(string[])"/> will be
188
+ /// respected no matter the table exists or not. A new table will be created if the table not
189
+ /// exists.
190
+ ///
191
+ /// For v2 table, <see cref="PartitionBy(string[])"/> will be ignored if the table already exists.
192
+ /// <see cref="PartitionBy(string[])"/> will be respected only if the v2 table does not exist.
193
+ /// Besides, the v2 table created by this API lacks some functionalities (e.g., customized
194
+ /// properties, options, and serde info). If you need them, please create the v2 table manually
195
+ /// before the execution to avoid creating a table with incomplete information.
196
+ /// </remarks>
197
+ /// <param name="tableName">Name of the table</param>
198
+ /// <returns>StreamingQuery object</returns>
199
+ [ Since ( Versions . V3_1_0 ) ]
200
+ public StreamingQuery ToTable ( string tableName )
201
+ {
202
+ return new StreamingQuery ( ( JvmObjectReference ) _jvmObject . Invoke ( "toTable" , tableName ) ) ;
203
+ }
204
+
181
205
/// <summary>
182
206
/// Sets the output of the streaming query to be processed using the provided
183
207
/// writer object. See <see cref="IForeachWriter"/> for more details on the
0 commit comments