@@ -130,7 +130,9 @@ impl StreamingServiceImpl {
130130 user,
131131 password,
132132 url,
133- } => Ok ( Arc :: new ( KSqlStreamingSource {
133+ } => {
134+ log:: debug!( "source_by: KSql: table columns: {:?}" , table. get_row( ) . get_columns( ) ) ;
135+ Ok ( Arc :: new ( KSqlStreamingSource {
134136 user : user. clone ( ) ,
135137 password : password. clone ( ) ,
136138 table : table_name,
@@ -143,13 +145,16 @@ impl StreamingServiceImpl {
143145 columns : table. get_row ( ) . get_columns ( ) . clone ( ) ,
144146 seq_column_index : seq_column. get_index ( ) ,
145147
146- } ) ) ,
148+ } ) ) } ,
147149 SourceCredentials :: Kafka {
148150 user,
149151 password,
150152 host,
151153 use_ssl,
152- } => Ok ( Arc :: new ( KafkaStreamingSource :: try_new (
154+ } => {
155+ log:: debug!( "source_by: Kafka: table columns: {:?}, source columns: {:?}" , table. get_row( ) . get_columns( ) , table. get_row( ) . source_columns( ) ) ;
156+
157+ Ok ( Arc :: new ( KafkaStreamingSource :: try_new (
153158 table. get_id ( ) ,
154159 table. get_row ( ) . unique_key_columns ( )
155160 . ok_or_else ( || CubeError :: internal ( format ! ( "Streaming table without unique key columns: {:?}" , table) ) ) ?
@@ -170,7 +175,7 @@ impl StreamingServiceImpl {
170175 * use_ssl,
171176 trace_obj,
172177 self . metadata_cache_factory . clone ( ) ,
173- ) . await ?) ) ,
178+ ) . await ?) ) } ,
174179 }
175180 }
176181
@@ -317,6 +322,7 @@ impl StreamingService for StreamingServiceImpl {
317322 let rows = new_rows;
318323 debug ! ( "Received {} rows for {}" , rows. len( ) , location) ;
319324 let table_cols = source. source_columns ( ) . as_slice ( ) ;
325+ log:: debug!( "stream_table: table_cols (source_columns): {:?}, table columns: {:?}" , table_cols, table. get_row( ) . get_columns( ) ) ;
320326 let mut builders = create_array_builders ( table_cols) ;
321327
322328 let mut start_seq: Option < i64 > = None ;
@@ -350,7 +356,9 @@ impl StreamingService for StreamingServiceImpl {
350356 . create_replay_handle ( table. get_id ( ) , location_index, seq_pointer)
351357 . await ?;
352358 let data = finish ( builders) ;
359+ log:: debug!( "stream_table: after finish data.len(): {}, table columns: {:?}" , data. len( ) , table. get_row( ) . get_columns( ) ) ;
353360 let data = source. apply_post_processing ( data) . await ?;
361+ log:: debug!( "stream_table: after apply_post_processing data.len(): {}, table columns: {:?}" , data. len( ) , table. get_row( ) . get_columns( ) ) ;
354362
355363 let partition_started_at = SystemTime :: now ( ) ;
356364 let new_chunks = self
0 commit comments