├── .gitignore ├── README.md ├── requirements.txt ├── table ├── __init__.py ├── batch │ ├── add_columns.py │ ├── add_or_replace_columns.py │ ├── alias.py │ ├── distinct_agg.py │ ├── drop_columns.py │ ├── filter.py │ ├── full_outer_join.py │ ├── group_by_agg.py │ ├── group_by_window_agg.py │ ├── in.py │ ├── inner_join.py │ ├── intersect.py │ ├── intersect_all.py │ ├── left_outer_join.py │ ├── minus.py │ ├── minus_all.py │ ├── offset_and_fetch.py │ ├── order_by.py │ ├── rename_columns.py │ ├── right_outer_join.py │ ├── scan.py │ ├── session_window.py │ ├── slide_window.py │ ├── table_select.py │ ├── tumble_window.py │ ├── union.py │ ├── union_all.py │ └── where.py ├── javaudf │ ├── README.md │ ├── aggregate-function │ │ ├── pom.xml │ │ └── src │ │ │ └── main │ │ │ └── java │ │ │ └── com │ │ │ └── pyflink │ │ │ └── table │ │ │ └── WeightedAvg.java │ ├── aggregate_func_demo.py │ ├── scalar-function │ │ ├── pom.xml │ │ └── src │ │ │ └── main │ │ │ └── java │ │ │ └── com │ │ │ └── pyflink │ │ │ └── table │ │ │ └── HashCode.java │ ├── scalar_func_demo.py │ ├── table-function │ │ ├── pom.xml │ │ └── src │ │ │ └── main │ │ │ └── java │ │ │ └── com │ │ │ └── pyflink │ │ │ └── table │ │ │ └── Split.java │ └── table_func_demo.py ├── prepare_environment.py ├── resources │ └── table_orders.csv ├── streaming │ ├── add_columns.py │ ├── add_or_replace_columns.py │ ├── alias.py │ ├── distinct.py │ ├── distinct_agg.py │ ├── drop_columns.py │ ├── filter.py │ ├── full_outer_join.py │ ├── group_by_agg.py │ ├── group_by_window_agg.py │ ├── in.py │ ├── inner_join.py │ ├── left_outer_join.py │ ├── over_window_agg.py │ ├── rename_columns.py │ ├── right_outer_join.py │ ├── scan.py │ ├── session_window.py │ ├── slide_window.py │ ├── table_select.py │ ├── tumble_window.py │ ├── union_all.py │ └── where.py ├── user_case │ ├── __init__.py │ └── pv_uv │ │ ├── README.md │ │ ├── __init__.py │ │ ├── create_data.sh │ │ ├── env.sh │ │ ├── pv_uv_example.py │ │ └── user_behavior.log └── user_defined_sources_and_sinks │ ├── CustomTableSourceDemo.py │ ├── README.md │ ├── __init__.py │ ├── pom.xml │ └── src │ └── main │ ├── java │ └── com │ │ └── pyflink │ │ └── table │ │ ├── factory │ │ └── TestTableFactory.java │ │ ├── sinks │ │ └── TestRetractSink.java │ │ └── sources │ │ └── TestSource.java │ └── resources │ └── META-INF │ └── services │ └── org.apache.flink.table.factories.TableFactory └── utils ├── __init__.py ├── elastic_search_utils.py └── kafka_utils.py /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mukess/pyflink-demo/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mukess/pyflink-demo/HEAD/README.md -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mukess/pyflink-demo/HEAD/requirements.txt -------------------------------------------------------------------------------- /table/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /table/batch/add_columns.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mukess/pyflink-demo/HEAD/table/batch/add_columns.py -------------------------------------------------------------------------------- /table/batch/add_or_replace_columns.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mukess/pyflink-demo/HEAD/table/batch/add_or_replace_columns.py -------------------------------------------------------------------------------- /table/batch/alias.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mukess/pyflink-demo/HEAD/table/batch/alias.py -------------------------------------------------------------------------------- /table/batch/distinct_agg.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mukess/pyflink-demo/HEAD/table/batch/distinct_agg.py -------------------------------------------------------------------------------- /table/batch/drop_columns.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mukess/pyflink-demo/HEAD/table/batch/drop_columns.py -------------------------------------------------------------------------------- /table/batch/filter.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mukess/pyflink-demo/HEAD/table/batch/filter.py -------------------------------------------------------------------------------- /table/batch/full_outer_join.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mukess/pyflink-demo/HEAD/table/batch/full_outer_join.py -------------------------------------------------------------------------------- /table/batch/group_by_agg.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mukess/pyflink-demo/HEAD/table/batch/group_by_agg.py -------------------------------------------------------------------------------- /table/batch/group_by_window_agg.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mukess/pyflink-demo/HEAD/table/batch/group_by_window_agg.py -------------------------------------------------------------------------------- /table/batch/in.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mukess/pyflink-demo/HEAD/table/batch/in.py -------------------------------------------------------------------------------- /table/batch/inner_join.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mukess/pyflink-demo/HEAD/table/batch/inner_join.py -------------------------------------------------------------------------------- /table/batch/intersect.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mukess/pyflink-demo/HEAD/table/batch/intersect.py -------------------------------------------------------------------------------- /table/batch/intersect_all.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mukess/pyflink-demo/HEAD/table/batch/intersect_all.py -------------------------------------------------------------------------------- /table/batch/left_outer_join.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mukess/pyflink-demo/HEAD/table/batch/left_outer_join.py -------------------------------------------------------------------------------- /table/batch/minus.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mukess/pyflink-demo/HEAD/table/batch/minus.py -------------------------------------------------------------------------------- /table/batch/minus_all.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mukess/pyflink-demo/HEAD/table/batch/minus_all.py -------------------------------------------------------------------------------- /table/batch/offset_and_fetch.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mukess/pyflink-demo/HEAD/table/batch/offset_and_fetch.py -------------------------------------------------------------------------------- /table/batch/order_by.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mukess/pyflink-demo/HEAD/table/batch/order_by.py -------------------------------------------------------------------------------- /table/batch/rename_columns.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mukess/pyflink-demo/HEAD/table/batch/rename_columns.py -------------------------------------------------------------------------------- /table/batch/right_outer_join.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mukess/pyflink-demo/HEAD/table/batch/right_outer_join.py -------------------------------------------------------------------------------- /table/batch/scan.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mukess/pyflink-demo/HEAD/table/batch/scan.py -------------------------------------------------------------------------------- /table/batch/session_window.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mukess/pyflink-demo/HEAD/table/batch/session_window.py -------------------------------------------------------------------------------- /table/batch/slide_window.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mukess/pyflink-demo/HEAD/table/batch/slide_window.py -------------------------------------------------------------------------------- /table/batch/table_select.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mukess/pyflink-demo/HEAD/table/batch/table_select.py -------------------------------------------------------------------------------- /table/batch/tumble_window.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mukess/pyflink-demo/HEAD/table/batch/tumble_window.py -------------------------------------------------------------------------------- /table/batch/union.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mukess/pyflink-demo/HEAD/table/batch/union.py -------------------------------------------------------------------------------- /table/batch/union_all.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mukess/pyflink-demo/HEAD/table/batch/union_all.py -------------------------------------------------------------------------------- /table/batch/where.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mukess/pyflink-demo/HEAD/table/batch/where.py -------------------------------------------------------------------------------- /table/javaudf/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mukess/pyflink-demo/HEAD/table/javaudf/README.md -------------------------------------------------------------------------------- /table/javaudf/aggregate-function/pom.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mukess/pyflink-demo/HEAD/table/javaudf/aggregate-function/pom.xml -------------------------------------------------------------------------------- /table/javaudf/aggregate-function/src/main/java/com/pyflink/table/WeightedAvg.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mukess/pyflink-demo/HEAD/table/javaudf/aggregate-function/src/main/java/com/pyflink/table/WeightedAvg.java -------------------------------------------------------------------------------- /table/javaudf/aggregate_func_demo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mukess/pyflink-demo/HEAD/table/javaudf/aggregate_func_demo.py -------------------------------------------------------------------------------- /table/javaudf/scalar-function/pom.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mukess/pyflink-demo/HEAD/table/javaudf/scalar-function/pom.xml -------------------------------------------------------------------------------- /table/javaudf/scalar-function/src/main/java/com/pyflink/table/HashCode.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mukess/pyflink-demo/HEAD/table/javaudf/scalar-function/src/main/java/com/pyflink/table/HashCode.java -------------------------------------------------------------------------------- /table/javaudf/scalar_func_demo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mukess/pyflink-demo/HEAD/table/javaudf/scalar_func_demo.py -------------------------------------------------------------------------------- /table/javaudf/table-function/pom.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mukess/pyflink-demo/HEAD/table/javaudf/table-function/pom.xml -------------------------------------------------------------------------------- /table/javaudf/table-function/src/main/java/com/pyflink/table/Split.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mukess/pyflink-demo/HEAD/table/javaudf/table-function/src/main/java/com/pyflink/table/Split.java -------------------------------------------------------------------------------- /table/javaudf/table_func_demo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mukess/pyflink-demo/HEAD/table/javaudf/table_func_demo.py -------------------------------------------------------------------------------- /table/prepare_environment.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mukess/pyflink-demo/HEAD/table/prepare_environment.py -------------------------------------------------------------------------------- /table/resources/table_orders.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mukess/pyflink-demo/HEAD/table/resources/table_orders.csv -------------------------------------------------------------------------------- /table/streaming/add_columns.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mukess/pyflink-demo/HEAD/table/streaming/add_columns.py -------------------------------------------------------------------------------- /table/streaming/add_or_replace_columns.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mukess/pyflink-demo/HEAD/table/streaming/add_or_replace_columns.py -------------------------------------------------------------------------------- /table/streaming/alias.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mukess/pyflink-demo/HEAD/table/streaming/alias.py -------------------------------------------------------------------------------- /table/streaming/distinct.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mukess/pyflink-demo/HEAD/table/streaming/distinct.py -------------------------------------------------------------------------------- /table/streaming/distinct_agg.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mukess/pyflink-demo/HEAD/table/streaming/distinct_agg.py -------------------------------------------------------------------------------- /table/streaming/drop_columns.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mukess/pyflink-demo/HEAD/table/streaming/drop_columns.py -------------------------------------------------------------------------------- /table/streaming/filter.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mukess/pyflink-demo/HEAD/table/streaming/filter.py -------------------------------------------------------------------------------- /table/streaming/full_outer_join.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mukess/pyflink-demo/HEAD/table/streaming/full_outer_join.py -------------------------------------------------------------------------------- /table/streaming/group_by_agg.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mukess/pyflink-demo/HEAD/table/streaming/group_by_agg.py -------------------------------------------------------------------------------- /table/streaming/group_by_window_agg.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mukess/pyflink-demo/HEAD/table/streaming/group_by_window_agg.py -------------------------------------------------------------------------------- /table/streaming/in.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mukess/pyflink-demo/HEAD/table/streaming/in.py -------------------------------------------------------------------------------- /table/streaming/inner_join.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mukess/pyflink-demo/HEAD/table/streaming/inner_join.py -------------------------------------------------------------------------------- /table/streaming/left_outer_join.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mukess/pyflink-demo/HEAD/table/streaming/left_outer_join.py -------------------------------------------------------------------------------- /table/streaming/over_window_agg.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mukess/pyflink-demo/HEAD/table/streaming/over_window_agg.py -------------------------------------------------------------------------------- /table/streaming/rename_columns.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mukess/pyflink-demo/HEAD/table/streaming/rename_columns.py -------------------------------------------------------------------------------- /table/streaming/right_outer_join.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mukess/pyflink-demo/HEAD/table/streaming/right_outer_join.py -------------------------------------------------------------------------------- /table/streaming/scan.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mukess/pyflink-demo/HEAD/table/streaming/scan.py -------------------------------------------------------------------------------- /table/streaming/session_window.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mukess/pyflink-demo/HEAD/table/streaming/session_window.py -------------------------------------------------------------------------------- /table/streaming/slide_window.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mukess/pyflink-demo/HEAD/table/streaming/slide_window.py -------------------------------------------------------------------------------- /table/streaming/table_select.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mukess/pyflink-demo/HEAD/table/streaming/table_select.py -------------------------------------------------------------------------------- /table/streaming/tumble_window.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mukess/pyflink-demo/HEAD/table/streaming/tumble_window.py -------------------------------------------------------------------------------- /table/streaming/union_all.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mukess/pyflink-demo/HEAD/table/streaming/union_all.py -------------------------------------------------------------------------------- /table/streaming/where.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mukess/pyflink-demo/HEAD/table/streaming/where.py -------------------------------------------------------------------------------- /table/user_case/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /table/user_case/pv_uv/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mukess/pyflink-demo/HEAD/table/user_case/pv_uv/README.md -------------------------------------------------------------------------------- /table/user_case/pv_uv/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /table/user_case/pv_uv/create_data.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mukess/pyflink-demo/HEAD/table/user_case/pv_uv/create_data.sh -------------------------------------------------------------------------------- /table/user_case/pv_uv/env.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mukess/pyflink-demo/HEAD/table/user_case/pv_uv/env.sh -------------------------------------------------------------------------------- /table/user_case/pv_uv/pv_uv_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mukess/pyflink-demo/HEAD/table/user_case/pv_uv/pv_uv_example.py -------------------------------------------------------------------------------- /table/user_case/pv_uv/user_behavior.log: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mukess/pyflink-demo/HEAD/table/user_case/pv_uv/user_behavior.log -------------------------------------------------------------------------------- /table/user_defined_sources_and_sinks/CustomTableSourceDemo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mukess/pyflink-demo/HEAD/table/user_defined_sources_and_sinks/CustomTableSourceDemo.py -------------------------------------------------------------------------------- /table/user_defined_sources_and_sinks/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mukess/pyflink-demo/HEAD/table/user_defined_sources_and_sinks/README.md -------------------------------------------------------------------------------- /table/user_defined_sources_and_sinks/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /table/user_defined_sources_and_sinks/pom.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mukess/pyflink-demo/HEAD/table/user_defined_sources_and_sinks/pom.xml -------------------------------------------------------------------------------- /table/user_defined_sources_and_sinks/src/main/java/com/pyflink/table/factory/TestTableFactory.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mukess/pyflink-demo/HEAD/table/user_defined_sources_and_sinks/src/main/java/com/pyflink/table/factory/TestTableFactory.java -------------------------------------------------------------------------------- /table/user_defined_sources_and_sinks/src/main/java/com/pyflink/table/sinks/TestRetractSink.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mukess/pyflink-demo/HEAD/table/user_defined_sources_and_sinks/src/main/java/com/pyflink/table/sinks/TestRetractSink.java -------------------------------------------------------------------------------- /table/user_defined_sources_and_sinks/src/main/java/com/pyflink/table/sources/TestSource.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mukess/pyflink-demo/HEAD/table/user_defined_sources_and_sinks/src/main/java/com/pyflink/table/sources/TestSource.java -------------------------------------------------------------------------------- /table/user_defined_sources_and_sinks/src/main/resources/META-INF/services/org.apache.flink.table.factories.TableFactory: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mukess/pyflink-demo/HEAD/table/user_defined_sources_and_sinks/src/main/resources/META-INF/services/org.apache.flink.table.factories.TableFactory -------------------------------------------------------------------------------- /utils/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /utils/elastic_search_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mukess/pyflink-demo/HEAD/utils/elastic_search_utils.py -------------------------------------------------------------------------------- /utils/kafka_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mukess/pyflink-demo/HEAD/utils/kafka_utils.py --------------------------------------------------------------------------------