Skip to content

Commit 3fd7179

Browse files
Update pattern for multiple mview suffixes (#1693)
* Update pattern for multiple mview suffixes Signed-off-by: Simeon Widdis <[email protected]> * Update field filter to new format Signed-off-by: Simeon Widdis <[email protected]> * Update all mviews for new pattern Signed-off-by: Simeon Widdis <[email protected]> --------- Signed-off-by: Simeon Widdis <[email protected]> (cherry picked from commit 72283be) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent a8cd9e5 commit 3fd7179

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

public/components/datasources/components/manage/data_connection.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export const DataConnection = (props: { dataSource: string }) => {
9191

9292
useEffect(() => {
9393
const searchDataSourcePattern = new RegExp(
94-
`flint_${_.escapeRegExp(datasourceDetails.name)}_default_.*_mview`
94+
`flint_${_.escapeRegExp(datasourceDetails.name)}_default_.*`
9595
);
9696
const findIntegrations = async () => {
9797
// TODO: we just get all results and filter, ideally we send a filtering query to the API

public/components/integrations/components/setup_integration.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ const addIntegration = async ({
514514
integration,
515515
setCalloutLikeToast,
516516
config.displayName,
517-
`flint_${config.connectionDataSource}_default_${config.connectionTableName}_mview`,
517+
`flint_${config.connectionDataSource}_default_${config.connectionTableName}__*`,
518518
config.enabledWorkflows,
519519
setIsInstalling ? true : false
520520
);

server/adaptors/integrations/__data__/repository/apache/assets/create_mv-1.0.0.sql

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CREATE MATERIALIZED VIEW {table_name}_mview AS
1+
CREATE MATERIALIZED VIEW {table_name}__mview AS
22
SELECT
33
to_timestamp(trim(BOTH '[]' FROM concat(time_local_1, ' ', time_local_2)), 'dd/MMM/yyyy:HH:mm:ss Z') AS `@timestamp`,
44
split_part (request, ' ', 1) as `http.request.method`,

server/adaptors/integrations/__data__/repository/aws_elb/assets/create_mv-1.0.0.sql

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CREATE MATERIALIZED VIEW {table_name}_mview AS
1+
CREATE MATERIALIZED VIEW {table_name}__mview AS
22
SELECT
33
type as `aws.elb.elb_type`,
44
time as `@timestamp`,

server/adaptors/integrations/__data__/repository/aws_s3/assets/create_mv-1.0.0.sql

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CREATE MATERIALIZED VIEW {table_name}_mview AS
1+
CREATE MATERIALIZED VIEW {table_name}__mview AS
22
SELECT
33
owner_id AS `aws.s3.bucket_owner`,
44
bucket_name AS `aws.s3.bucket`,

server/adaptors/integrations/__data__/repository/aws_waf/assets/create_mv-1.0.0.sql

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CREATE MATERIALIZED VIEW {table_name}_mview AS
1+
CREATE MATERIALIZED VIEW {table_name}__mview AS
22
SELECT
33
CAST(FROM_UNIXTIME(`timestamp`/ 1000) AS TIMESTAMP) AS `@timestamp`,
44
formatVersion AS `aws.waf.formatVersion`,

server/adaptors/integrations/__data__/repository/haproxy/assets/create_mv-1.0.0.sql

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CREATE MATERIALIZED VIEW {table_name}_mview AS
1+
CREATE MATERIALIZED VIEW {table_name}__mview AS
22
SELECT
33
regexp_extract(
44
record,

server/adaptors/integrations/__data__/repository/nginx/assets/create_mv-1.0.0.sql

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CREATE MATERIALIZED VIEW {table_name}_mview AS
1+
CREATE MATERIALIZED VIEW {table_name}__mview AS
22
SELECT
33
to_timestamp(trim(BOTH '[]' FROM concat(time_local_1, ' ', time_local_2)), 'dd/MMM/yyyy:HH:mm:ss Z') AS `@timestamp`,
44
split_part (request, ' ', 1) as `http.request.method`,

0 commit comments

Comments
 (0)