diff --git a/.github/workflows/stack-kafka-flink.yml b/.github/workflows/application-apache-kafka-flink.yml similarity index 64% rename from .github/workflows/stack-kafka-flink.yml rename to .github/workflows/application-apache-kafka-flink.yml index 69f8abff..0eb70564 100644 --- a/.github/workflows/stack-kafka-flink.yml +++ b/.github/workflows/application-apache-kafka-flink.yml @@ -1,17 +1,17 @@ -name: Apache Kafka, Apache Flink, and CrateDB +name: Apache Kafka, Apache Flink on: pull_request: branches: ~ paths: - - '.github/workflows/stack-kafka-flink.yml' - - 'stacks/kafka-flink/**' + - '.github/workflows/application-apache-kafka-flink.yml' + - 'application/apache-kafka-flink/**' - 'requirements.txt' push: branches: [ main ] paths: - - '.github/workflows/stack-kafka-flink.yml' - - 'stacks/kafka-flink/**' + - '.github/workflows/application-apache-kafka-flink.yml' + - 'application/apache-kafka-flink/**' - 'requirements.txt' # Allow job to be triggered manually. @@ -42,7 +42,8 @@ jobs: - name: Acquire sources uses: actions/checkout@v4 - - name: Run test program + - name: Validate application/apache-kafka-flink run: | - cd stacks/kafka-flink + # TODO: Generalize invocation into `ngr` test runner. + cd application/apache-kafka-flink bash test.sh diff --git a/.github/workflows/framework-apache-superset.yml b/.github/workflows/application-apache-superset.yml similarity index 84% rename from .github/workflows/framework-apache-superset.yml rename to .github/workflows/application-apache-superset.yml index 429e9016..d1514067 100644 --- a/.github/workflows/framework-apache-superset.yml +++ b/.github/workflows/application-apache-superset.yml @@ -4,14 +4,14 @@ on: pull_request: branches: ~ paths: - - '.github/workflows/framework-apache-superset.yml' - - 'framework/apache-superset/**' + - '.github/workflows/application-apache-superset.yml' + - 'application/apache-superset/**' - 'requirements.txt' push: branches: [ main ] paths: - - '.github/workflows/framework-apache-superset.yml' - - 'framework/apache-superset/**' + - '.github/workflows/application-apache-superset.yml' + - 'application/apache-superset/**' - 'requirements.txt' # Allow job to be triggered manually. @@ -77,6 +77,6 @@ jobs: run: | pip install 'apache-superset==${{ matrix.superset-version }}' - - name: Validate framework/apache-superset + - name: Validate application/apache-superset run: | - ngr test --accept-no-venv framework/apache-superset + ngr test --accept-no-venv application/apache-superset diff --git a/stacks/kafka-flink/.env b/application/apache-kafka-flink/.env similarity index 100% rename from stacks/kafka-flink/.env rename to application/apache-kafka-flink/.env diff --git a/stacks/kafka-flink/.gitignore b/application/apache-kafka-flink/.gitignore similarity index 100% rename from stacks/kafka-flink/.gitignore rename to application/apache-kafka-flink/.gitignore diff --git a/stacks/kafka-flink/Makefile b/application/apache-kafka-flink/Makefile similarity index 100% rename from stacks/kafka-flink/Makefile rename to application/apache-kafka-flink/Makefile diff --git a/stacks/kafka-flink/README.Unix.rst b/application/apache-kafka-flink/README.Unix.rst similarity index 100% rename from stacks/kafka-flink/README.Unix.rst rename to application/apache-kafka-flink/README.Unix.rst diff --git a/stacks/kafka-flink/README.Windows.rst b/application/apache-kafka-flink/README.Windows.rst similarity index 100% rename from stacks/kafka-flink/README.Windows.rst rename to application/apache-kafka-flink/README.Windows.rst diff --git a/stacks/kafka-flink/README.rst b/application/apache-kafka-flink/README.rst similarity index 100% rename from stacks/kafka-flink/README.rst rename to application/apache-kafka-flink/README.rst diff --git a/stacks/kafka-flink/backlog.rst b/application/apache-kafka-flink/backlog.rst similarity index 100% rename from stacks/kafka-flink/backlog.rst rename to application/apache-kafka-flink/backlog.rst diff --git a/stacks/kafka-flink/docker-compose.yml b/application/apache-kafka-flink/docker-compose.yml similarity index 100% rename from stacks/kafka-flink/docker-compose.yml rename to application/apache-kafka-flink/docker-compose.yml diff --git a/stacks/kafka-flink/notes.rst b/application/apache-kafka-flink/notes.rst similarity index 100% rename from stacks/kafka-flink/notes.rst rename to application/apache-kafka-flink/notes.rst diff --git a/stacks/kafka-flink/test.sh b/application/apache-kafka-flink/test.sh similarity index 100% rename from stacks/kafka-flink/test.sh rename to application/apache-kafka-flink/test.sh diff --git a/framework/apache-superset/README.md b/application/apache-superset/README.md similarity index 100% rename from framework/apache-superset/README.md rename to application/apache-superset/README.md diff --git a/framework/apache-superset/conftest.py b/application/apache-superset/conftest.py similarity index 100% rename from framework/apache-superset/conftest.py rename to application/apache-superset/conftest.py diff --git a/framework/apache-superset/data.sql b/application/apache-superset/data.sql similarity index 100% rename from framework/apache-superset/data.sql rename to application/apache-superset/data.sql diff --git a/framework/apache-superset/pyproject.toml b/application/apache-superset/pyproject.toml similarity index 100% rename from framework/apache-superset/pyproject.toml rename to application/apache-superset/pyproject.toml diff --git a/framework/apache-superset/requirements-test.txt b/application/apache-superset/requirements-test.txt similarity index 100% rename from framework/apache-superset/requirements-test.txt rename to application/apache-superset/requirements-test.txt diff --git a/framework/apache-superset/requirements.txt b/application/apache-superset/requirements.txt similarity index 100% rename from framework/apache-superset/requirements.txt rename to application/apache-superset/requirements.txt diff --git a/framework/apache-superset/superset_config.py b/application/apache-superset/superset_config.py similarity index 100% rename from framework/apache-superset/superset_config.py rename to application/apache-superset/superset_config.py diff --git a/framework/apache-superset/test.py b/application/apache-superset/test.py similarity index 100% rename from framework/apache-superset/test.py rename to application/apache-superset/test.py diff --git a/framework/apache-superset/util.py b/application/apache-superset/util.py similarity index 100% rename from framework/apache-superset/util.py rename to application/apache-superset/util.py diff --git a/stacks/http-api-behind-nginx/README.rst b/operation/http-api-behind-nginx/README.rst similarity index 100% rename from stacks/http-api-behind-nginx/README.rst rename to operation/http-api-behind-nginx/README.rst diff --git a/stacks/http-api-behind-nginx/nginx.conf b/operation/http-api-behind-nginx/nginx.conf similarity index 100% rename from stacks/http-api-behind-nginx/nginx.conf rename to operation/http-api-behind-nginx/nginx.conf diff --git a/stacks/testbench-yellowcab/README.rst b/operation/testbench-yellowcab/README.rst similarity index 100% rename from stacks/testbench-yellowcab/README.rst rename to operation/testbench-yellowcab/README.rst diff --git a/stacks/testbench-yellowcab/cratedb-import-nyc-yellowcab.sh b/operation/testbench-yellowcab/cratedb-import-nyc-yellowcab.sh similarity index 100% rename from stacks/testbench-yellowcab/cratedb-import-nyc-yellowcab.sh rename to operation/testbench-yellowcab/cratedb-import-nyc-yellowcab.sh diff --git a/queries/timebuckets-minmax-values/README.rst b/queries/timebuckets-minmax-values/README.rst deleted file mode 100644 index 1eaba36a..00000000 --- a/queries/timebuckets-minmax-values/README.rst +++ /dev/null @@ -1,13 +0,0 @@ -***** -About -***** - -How to query for minimum/maximum values in x minute time-buckets, -while keeping the original time stamps of those values. - - -******* -Details -******* - -Todo. diff --git a/queries/timebuckets-minmax-values/query.sql b/queries/timebuckets-minmax-values/query.sql deleted file mode 100644 index 08c89c11..00000000 --- a/queries/timebuckets-minmax-values/query.sql +++ /dev/null @@ -1,27 +0,0 @@ -SELECT uid,nameid,name,unit,value,timestamp -FROM - (SELECT - uid, - nameid, - name, - unit, - timestamp, - value, - FIRST_VALUE(value) OVER (w) AS "max", - -- FIRST_VALUE(timestamp) OVER (w) AS "max_ts", - LAST_VALUE(value) OVER (w) AS "min", - -- LAST_VALUE(timestamp) OVER (w) AS "min_ts" - FROM telemetry_01 - WHERE "nameid" in - ('43CAB42B447E4578DEEDF43B211A3FFE174445529A21948318B05ECD9E2C76E6', - '01DB60764B125AF8102F10E21E45470BC7C2D0A095F43C24FC83B55BCA726726', - '507744F768594E94A2D65BE1F7FC69ABA27317D942224626EB56E8212F7655E5', - '32B4D18C6FE2250049F27737E1EC2E4B56623491592D03FEF55FCC2B8E4ADBB5') - AND "timestamp" >= '2021-01-22T02:54:44.6100000Z' - AND "timestamp" < '2021-01-22T03:59:19.2480000Z' - WINDOW "w" AS (PARTITION BY uid, nameid, name, unit, - FLOOR((EXTRACT(EPOCH FROM timestamp)) / 300) - ORDER BY "value" DESC - RANGE BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) - ORDER BY 1,2,3,4,5) s -WHERE value = max OR value = min