am I missing somethign here? shouldn't this return...
# troubleshooting
r
am I missing somethign here? shouldn't this return some rows?
Copy code
Flink SQL> CREATE TABLE foo2 (
>      c1 INT,
>      c2 STRING
>  ) WITH (
>    'connector' = 'datagen',
>    'number-of-rows' = '8'
>  );
[INFO] Execute statement succeed.

Flink SQL> select count(*) from foo2;
+----+----------------------+
| op |               EXPR$0 |
+----+----------------------+
Received a total of 0 row
d
Do you see rows if the "number-of-rows" is higher? I wonder if the job is transitioning to finished state before the sink emits results?
r
doesn't seem to
Copy code
Flink SQL> CREATE TABLE foo2 (
>      c1 INT,
>      c2 STRING
>  ) WITH (
>    'connector' = 'datagen',
>    'number-of-rows' = '1024'
>  );
[INFO] Execute statement succeed.

Flink SQL> SET 'sql-client.execution.result-mode' = 'tableau';
[INFO] Execute statement succeed.

Flink SQL>
> select * from foo2;
+----+-------------+--------------------------------+
| op |          c1 |                             c2 |
+----+-------------+--------------------------------+
Received a total of 0 row
d
I just ran on 1.18.1 dist and got output:
Copy code
c1                             c2
  -944116714 03ee7b45e0cfb984f05f694204c4d~
  2030326565 c17c99fc60cfc272e63c9c9a208be~
  -594291545 8b28d6c8010ff75d6e903665b160f~
  1506846655 dde148d4279850e272501919f16ca~
 -1857970751 36df4bf8424c5b3673a8446a68c4f~
  -758191226 d6790a1a068d489cd521021867320~
 -1695305522 a323e6961b43a49f19cedc2ff842a~
 -1052658678 30ca041683a18c8ddc596dc84251d~
r
i'm maybe tying myself up in knots here. I'm using an Iceberg catalog. would that confuse things?
d
What is the job status on the dashboard? Any errors?
r
no errors
d
The job graph looks the same as mine πŸ€” , using local catalog
Try to disable operator chaining to see if records are flowing
r
it's the iceberg catalog that I'm using which is the problem. works fine with in-mem catalog
Copy code
Flink SQL> CREATE CATALOG c_in_mem WITH (
>       'type' = 'generic_in_memory'
>   );
[INFO] Execute statement succeed.

Flink SQL> use catalog c_in_mem;
[INFO] Execute statement succeed.

Flink SQL> show tables;
Empty set

Flink SQL> CREATE TABLE foo2 (
>      c1 INT,
>      c2 STRING
>  ) WITH (
>    'connector' = 'datagen',
>    'number-of-rows' = '1024'
>  );
[INFO] Execute statement succeed.

Flink SQL> SET 'execution.runtime-mode' = 'batch';
>
[INFO] Execute statement succeed.

Flink SQL> select count(*) from foo2;

+--------+
| EXPR$0 |
+--------+
|   1024 |
+--------+
1 row in set

Flink SQL>
>
i'm still wrapping my head around catalogs, so perhaps I'm just doing something daft here?
d
Not sure, sorry
r
ok, thanks anyway πŸ™‚