Skip to content

Commit

Permalink
Add bound for import config (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewNepogoda authored Sep 29, 2023
1 parent 8ba7faf commit 89b98ae
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 11 deletions.
3 changes: 0 additions & 3 deletions cli-e2e-test/rel/city.rel
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
bound import_config:city_data:schema
bound syntax:header

module city_data
def CITY_NAME[idx, row] = source_catalog:city_data[idx, :city, row]
end
Expand Down
3 changes: 0 additions & 3 deletions cli-e2e-test/rel/device.rel
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
bound import_config:device_data:schema
bound syntax:header

module device_data
def DEVICE_NAME[idx, row] = source_catalog:device_data[idx, :device, row]
end
Expand Down
3 changes: 0 additions & 3 deletions cli-e2e-test/rel/device_seen.rel
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
bound import_config:device_seen_snapshot:schema
bound syntax:header

module device_seen_snapshot
def DEVICE_NAME[idx, row] = source_catalog:device_seen_snapshot[idx, :device, row]
def LAST_SEEN[idx, row] = source_catalog:device_seen_snapshot[idx, :last_seen, row]
Expand Down
2 changes: 1 addition & 1 deletion cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This Command-Line Interface (CLI) is designed to provide an easy and interactive
1. Create a batch configuration (ex. `poc.json`) file using the syntax and structure outlined in the [RAI Workflow Framework README](../workflow/README.md).
2. Add `rai-workflow-manager` as dependency to your `requirements.txt` file:
```txt
rai-workflow-manager==0.0.16
rai-workflow-manager==0.0.17
```
3. Build the project:
```bash
Expand Down
2 changes: 1 addition & 1 deletion workflow/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@
# See the License for the specific language governing permissions and
# limitations under the License.

__version_info__ = (0, 0, 16)
__version_info__ = (0, 0, 17)
__version__ = ".".join(map(str, __version_info__))
2 changes: 2 additions & 0 deletions workflow/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,8 @@ def _multi_part_load_config_query(rel_name: str, file_type: FileType, config_int
f"def syntax:header = {IMPORT_CONFIG_REL}:{rel_name}:syntax:header"

return f"""
bound {IMPORT_CONFIG_REL}:{rel_name}:schema
bound {IMPORT_CONFIG_REL}:{rel_name}:syntax:header
module {_config_rel_name(rel_name)}[i in part_indexes]
{schema}
{config_integration}
Expand Down

0 comments on commit 89b98ae

Please sign in to comment.