Questions tagged [flink-sql]

Apache Flink features two relational APIs, SQL and Table API, as unified APIs for stream and batch processing.

Apache Flink features two relational APIs:

  1. SQL (via Apache Calcite)
  2. Table API, a language-integrated query (LINQ) interface

Both APIs are unified APIs for stream and batch processing. This means that the a query returns the same result regardless whether it is applied on a static data set or a data stream. SQL queries are parsed and optimized by Apache Calcite (Table API queries are optimized by Calcite).

Both APIs are tightly integrated with Flink's DataStream and DataSet APIs.

667 questions
0
votes
1 answer

Flink 1.4 Column 'rowtime' not found in any table

I am following the documentation to configure a TableSource with a rowtime attribute. I register the timestamp field as follows KafkaTableSource source = Kafka08JsonTableSource.builder()// set Kafka topic .forTopic("alerting") …
Xuan
  • 460
  • 5
  • 13
0
votes
0 answers

Flink RuntimeException while trying to group data using Table API

My project intend to use Flink for data processing. We have a Kafka topic and using that topic we want to aggregate data using Flink. Following is my sample code StreamExecutionEnvironment env =…
Viraj
  • 5,083
  • 6
  • 35
  • 76
0
votes
1 answer

Apache Flink: LEFT JOIN with a TableFunction does not return expected result

Flink version: 1.3.1 I created two tables, one is from memory, another is from UDTF. When I tested join and left join, they returned the same result. What I expected was left join had more rows than join. My test code is this: public class…
-1
votes
1 answer

How can I map each field of an event to a separate column when creating a table using Flink Table API from a data-stream of Confluent Avro?

How to create table using Table Api in flink for modelling I am working on creating a table using Table API from the data-stream of confluent-avro (from kafka topic). I am trying using the below code ( Flink version is 1.17) and it is creating table…
-1
votes
1 answer

How to submit a job to the standalone standalone using sql-cli

I followed the example in the link below, but got an error https://nightlies.apache.org/flink/flink-docs-release-1.16/docs/dev/table/sqlclient/ enter image description here org.apache.flink.table.client.gateway.SqlExecutionException: Could not…
Paddy
  • 1
  • 1
-1
votes
2 answers

Flink streaming parameters to tune?

I am currently working on a project titled by Automatic Tuning for Flink streaming framework. Basically, we aim to create a model(Reinforcement learning agent) to select the best values for Flink parameters. Such a problem occurs in the Spark…
-1
votes
1 answer

Use-Defined Aggregate Function in Flink - No match found for function signature

i would like to keep all raw rows per key in "Select .. From .. GROUP BY .." query in Flink. I defined a AggregateFunction called RowToJsonAgg which aggregates rows into a Json string. class RowToJsonAgg extends AggregateFunction[String,…
Grant
  • 500
  • 1
  • 5
  • 18
1 2 3
44
45