Skip to content

Commit e809639

Browse files
authored
Use string concatenation to fix current template (#154)
* Use string concatenation to fix current template * try 2
1 parent 8c21234 commit e809639

6 files changed

+13
-9
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file.
33

44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
55

6+
## [4.6.3] - 2025-02-13
7+
### Added
8+
- Use string concatenation `~` to fix current federation template.
9+
610
## [4.6.2] - 2025-02-12
711
### Added
812
- Use single quotes when empty to instantiate empty prefix.

templates/waggle-dance-federation-glue.yml.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
%{if metastore_enabled~}
2-
- name: ${ name == "" ? "prefix" : "name" }
2+
- name: ${ name == "" ? prefix : name }
33
access-control-type: ${ writable_whitelist == "" ? "READ_ONLY" : "READ_AND_WRITE_ON_DATABASE_WHITELIST" }
4-
database-prefix: '${ prefix == "" ? "" : "prefix_" }'
4+
database-prefix: '${ prefix == "" ? "" : format("%s_", prefix) }'
55
glue-config:
66
glue-account-id: ${glue_account_id}
77
glue-endpoint: ${glue_endpoint}

templates/waggle-dance-federation-local.yml.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
%{if metastore_enabled~}
2-
- name: ${ name == "" ? "prefix" : "name" }
2+
- name: ${ name == "" ? prefix : name }
33
access-control-type: ${ writable_whitelist == "" ? "READ_ONLY" : "READ_AND_WRITE_ON_DATABASE_WHITELIST" }
4-
database-prefix: '${ prefix == "" ? "" : "prefix_" }'
4+
database-prefix: '${ prefix == "" ? "" : format("%s_", prefix) }'
55
remote-meta-store-uris: thrift://${metastore_host}:${metastore_port}
66
latency: ${latency}
77
%{if enable_path_conversion ~}

templates/waggle-dance-federation-remote.yml.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
%{if metastore_enabled~}
2-
- name: ${ name == "" ? "prefix" : "name" }
2+
- name: ${ name == "" ? prefix : name }
33
access-control-type: ${ writable_whitelist == "" ? "READ_ONLY" : "READ_AND_WRITE_ON_DATABASE_WHITELIST" }
4-
database-prefix: '${ prefix == "" ? "" : "prefix_" }'
4+
database-prefix: '${ prefix == "" ? "" : format("%s_", prefix) }'
55
remote-meta-store-uris: thrift://${metastore_host}:${metastore_port}
66
latency: ${latency}
77
%{if enable_path_conversion ~}

templates/waggle-dance-federation-ssh.yml.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
%{if metastore_enabled~}
2-
- name: ${ name == "" ? "prefix" : "name" }
2+
- name: ${ name == "" ? prefix : name }
33
access-control-type: ${ writable_whitelist == "" ? "READ_ONLY" : "READ_AND_WRITE_ON_DATABASE_WHITELIST" }
4-
database-prefix: ${ prefix == "" ? '' : "prefix_" }
4+
database-prefix: '${ prefix == "" ? "" : format("%s_", prefix) }'
55
remote-meta-store-uris: thrift://${metastore_host}:${metastore_port}
66
latency: ${latency}
77
metastore-tunnel:

templates/waggle-dance-federation.yml.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
primary-meta-store:
22
access-control-type: ${primary_metastore_access_type}
3-
database-prefix: '${ primary_metastore_database_prefix == "" ? "" : "primary_metastore_database_prefix_" }'
3+
database-prefix: '${ primary_metastore_database_prefix == "" ? "" : format("%s_", primary_metastore_database_prefix) }'
44
name: primary
55
%{if primary_metastore_glue_account_id != "" ~}
66
glue-config:

0 commit comments

Comments
 (0)