rmoff
01/24/2024, 5:18 PMFlink 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 rowDanny Cranmer
01/24/2024, 5:27 PMrmoff
01/24/2024, 5:33 PMFlink 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 rowDanny Cranmer
01/24/2024, 5:34 PMc1 c2
-944116714 03ee7b45e0cfb984f05f694204c4d~
2030326565 c17c99fc60cfc272e63c9c9a208be~
-594291545 8b28d6c8010ff75d6e903665b160f~
1506846655 dde148d4279850e272501919f16ca~
-1857970751 36df4bf8424c5b3673a8446a68c4f~
-758191226 d6790a1a068d489cd521021867320~
-1695305522 a323e6961b43a49f19cedc2ff842a~
-1052658678 30ca041683a18c8ddc596dc84251d~rmoff
01/24/2024, 5:36 PMDanny Cranmer
01/24/2024, 5:38 PMrmoff
01/24/2024, 5:40 PMDanny Cranmer
01/24/2024, 5:43 PMDanny Cranmer
01/24/2024, 5:43 PMrmoff
01/24/2024, 5:43 PMFlink 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>
>rmoff
01/24/2024, 5:45 PMDanny Cranmer
01/24/2024, 5:47 PMrmoff
01/24/2024, 5:51 PM