David Bryson
09/12/2023, 1:08 AMpy4j.protocol.Py4JJavaError: An error occurred while calling o8.executeSql.
: java.lang.AssertionError: Conversion to relational algebra failed to preserve datatypes:
validated type:
RecordType(VARCHAR(6) CHARACTER SET "UTF-16LE" ticker, FLOAT EXPR$0, TIMESTAMP(3) EXPR$1) NOT NULL
converted type:
RecordType(VARCHAR(6) CHARACTER SET "UTF-16LE" ticker, FLOAT EXPR$0, TIMESTAMP(3) NOT NULL EXPR$1) NOT NULL
rel:
I'm not really sure what this error means? My aggregation is pretty simple:
165 tumble_window = Tumble.over(lit(10).seconds).on(col("event_time")).alias("w")
166 mean_ticker = input_table.window(tumble_window) \
167 .group_by(col("ticker"), col('w')) \
168 .select(col("ticker"), vector_mean(col('price')), col('w').end)
David Bryson
09/12/2023, 1:15 AMDavid Bryson
09/12/2023, 4:44 AMDavid Bryson
09/12/2023, 4:56 AMDavid Bryson
09/12/2023, 4:12 PMcol('w').rowtime
for the final select column the stream works... but I don't understand whyDavid Bryson
09/15/2023, 9:37 PMDavid Bryson
09/21/2023, 4:53 PMDavid Bryson
09/21/2023, 4:53 PM