Skip to content

Commit

Permalink
tumbling -> window namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
turbolytics committed Dec 23, 2024
1 parent 80a2447 commit 1c3029d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 0 additions & 2 deletions sqlflow/serde.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
from abc import ABC, abstractmethod




class Serializer(ABC):
@abstractmethod
def encode(self, d: object) -> bytes:
Expand Down
6 changes: 3 additions & 3 deletions sqlflow/sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

from confluent_kafka import Consumer, KafkaError, KafkaException, Producer

from sqlflow.window import handlers
from sqlflow import window
from sqlflow.outputs import ConsoleWriter, Writer, KafkaWriter


Expand Down Expand Up @@ -117,9 +117,9 @@ def handle_tables(conn, tables):
if table.window.type != 'tumbling':
raise NotImplementedError('only tumbling window is supported')

h = handlers.Tumbling(
h = window.Tumbling(
conn=conn,
table=handlers.Table(
table=window.Table(
name=table.name,
time_field=table.window.time_field,
),
Expand Down
1 change: 1 addition & 0 deletions sqlflow/window/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from .handlers import Tumbling

0 comments on commit 1c3029d

Please sign in to comment.