@@ -45,7 +45,7 @@ to to call :meth:`.SQLContext.listen` before you call
4545 # here, we provide a query, that gets registered as a view in feldera
4646 # this query will be executed on the data in the table
4747 query = f " SELECT name, ((science + maths + art) / 3) as average FROM { TBL_NAMES [0 ]} JOIN { TBL_NAMES [1 ]} on id = student_id ORDER BY average DESC "
48- sql.register_view (view_name, query)
48+ sql.register_output_view (view_name, query)
4949
5050 # connect the source (a pandas Dataframe in this case) to the tables
5151 sql.connect_source_pandas(TBL_NAMES [0 ], df_students)
@@ -129,7 +129,7 @@ More on Kafka as the output connector at: https://www.feldera.com/docs/connector
129129
130130 sql = SQLContext(' kafka' , ' http://localhost:8080' ).get_or_create()
131131 sql.register_table(TABLE_NAME , SQLSchema({" id" : " INT NOT NULL PRIMARY KEY" }))
132- sql.register_view (VIEW_NAME , f " SELECT COUNT(*) as num_rows FROM { TABLE_NAME } " )
132+ sql.register_output_view (VIEW_NAME , f " SELECT COUNT(*) as num_rows FROM { TABLE_NAME } " )
133133
134134 source_config = {
135135 " topics" : [" example_topic" ],
@@ -183,7 +183,7 @@ More on the HTTP GET connector at: https://www.feldera.com/docs/connectors/sourc
183183
184184 sql.register_table(TBL_NAME , SQLSchema({" id" : " INT" , " name" : " STRING" }))
185185
186- sql.register_view (VIEW_NAME , f " SELECT * FROM { TBL_NAME } " )
186+ sql.register_output_view (VIEW_NAME , f " SELECT * FROM { TBL_NAME } " )
187187
188188 path = " https://feldera-basics-tutorial.s3.amazonaws.com/part.json"
189189
0 commit comments