Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce new Arroyo-specific syntax (watermarks and metadata) #1

Merged
merged 3 commits into from
Feb 28, 2025

Conversation

mwylde
Copy link
Member

@mwylde mwylde commented Feb 28, 2025

This PR introduces two new syntax elements for the ArroyoDialect, and also makes the meaningless STORED keyword optional for generated fields.

WATERMARK FOR

Allows users to configure the event-time column and watermark generation expression without needing to create and then reference virtual fields:

WATERMARK FOR fieldname [AS watermark_expr]

for example,

CREATE TABLE logs (
  timestamp TIMESTAMP NOT NULL,
  id INT,
  WATERMARK FOR timestamp AS timestamp - INTERVAL '5 seconds'
)

METADATA FROM

Allow users to configure a column to have metadata injected from the source:

field_name TYPE METADATA FROM 'key'

example:

CREATE TABLE logs (
    id TEXT,
    kafka_topic STRING METADATA FROM 'topic',
    log TEXT
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant