Skip to content

Commit 3ecb8ca

Browse files
authored
chore: prepare sdf-beta 6 (#332)
Co-authored-by: Luis Moreno <morenol@users.noreply.github.com>
1 parent 229e8a3 commit 3ecb8ca

File tree

9 files changed

+24
-24
lines changed

9 files changed

+24
-24
lines changed

sdf/SDF_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sdf-beta5
1+
sdf-beta6

sdf/_embeds/install-sdf.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
fvm install sdf-beta5
1+
fvm install sdf-beta6

sdf/cli/build.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,13 @@ Usage: sdf build [OPTIONS]
1919

2020
Options:
2121
--dev set runtime to use dev mode [env: DEV=]
22+
--build-profile <BUILD_PROFILE> set the build profile [default: release]
2223
-h, --help Print help
2324
```
2425

2526
Where:
2627
* `--dev` development profile to be used for runtime mode
27-
28+
* `--build-profile` - sets the build profile [debug, optimized, release]
2829
#### Examples
2930

3031
##### sdf build

sdf/cli/run.mdx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Where:
4646
* `--port` sets the port for the web server to listen on
4747
* `--env` sets environment variables to be passed to operators
4848
* `--skip-running` - compiles components and exists without running the dataflow
49-
* `--build-profile` - sets the build profile
49+
* `--build-profile` - sets the build profile [debug, optimized, release]
5050
* `--prod` - sets runtime to apply prod specific parameters
5151
* `--force-update` - forces the update of the project dependencies
5252

@@ -130,5 +130,4 @@ Show the detailed information:
130130

131131
Please see the section of [sql mode].
132132

133-
134133
[sql mode]: ./run_sql.mdx

sdf/cli/test.mdx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,12 @@ Commands:
7272

7373
Options:
7474
--dev set runtime to use dev mode [env: DEV=]
75+
--build-profile <BUILD_PROFILE> set build profile [default: release]
7576
```
7677

7778
Where:
7879
* `--dev` - development profile to be used for building code
80+
* `--build-profile` - sets the build profile [debug, optimized, release]
7981

8082

8183
#### Example
@@ -102,16 +104,20 @@ Arguments:
102104
103105
Options:
104106
-v, --value <VALUE> Record value mapped to the `value` input of the function
107+
--value-file <VALUE_FILE> record value from file
105108
-k, --key <KEY> Record key mapped to the `key` input of the function
109+
--key-file <KEY_FILE> key value from file
106110
-s, --state-key <STATE_KEY> The key of the state the function runner uses to look-up
107111
state object
108112
-o, --output <OUTPUT> Output types, where v: is value (default), and kv: is
109113
key-value [default: v]
110114
```
111115
112116
Where:
113-
* `--value` maps ot the input parameter of the function
114-
* `--key` maps to the `optional` input parameter of the function
117+
* `--value` maps to the input parameter of the function
118+
* `--value-file` maps a file content to the input parameter of the function
119+
* `--key` maps to the `optional` input key parameter of the function
120+
* `--key-file` maps a file content to the `optional` input key parameter of the function
115121
* `--state-key` asks by the engine to look-up a state
116122
* `--output` ask the engine to show values-only or key-values
117123

sdf/composition/overview.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ functions:
7474
type: <input-type>
7575
output:
7676
type: <output-type>
77+
optional: <boolean, default to false>
7778

7879
dev:
7980
converter: <converter-props>

sdf/concepts/operators.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ window:
311311
top_words.push(word_count);
312312
}
313313
},
314-
_ => return Err(anyhow::anyhow!("unexpected schema")),
314+
_ => return Err(sdfg::anyhow::anyhow!("unexpected schema")),
315315
}
316316
Ok(top_words)
317317
}

sdf/whatsnew.mdx

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ sidebar_position: 20
77
import CodeBlock from '@theme/CodeBlock';
88
import InstallFvm from '!!raw-loader!./_embeds/install-sdf.bash';
99

10-
# Beta 5
10+
# Beta 6
1111

1212
## Upgrading
1313

14-
To upgrade CLI to the beta4, run the following command:
14+
To upgrade CLI to this version, run the following command:
1515

1616
<CodeBlock language="bash">{InstallFvm}</CodeBlock>
1717

@@ -24,27 +24,20 @@ $ sdf worker create <host-worker-name>
2424

2525
For upgrading cloud workers, please contact [InfinyOn support](#infinyon-support).
2626

27-
## Featured change
28-
29-
- Added [sql mode] to interactive shell. With this change, user should be able to run SQL queries (including JOINS) in states of dataflow. The states that support the queries are the [dataframe states]. In particular, when the state has a window context, the queries are againts the last flushed state.
30-
3127
### CLI changes
3228

33-
- `sdf run` not longer accepts `--dev`. Development mode is now the default for `sdf run`. If you want to run in non-development mode use `--prod`.
29+
- Added --build-profile to sdf build and sdf test subcommands.
30+
- Added ability to pass file as input for `sdf test`.
3431

3532
### Improvements
3633

37-
- Added capability to run complex queries like join on states in operator context through the [sql function].
38-
- Performance improvements.
39-
- Improved error messages when nested types definitions are wrong.
34+
- Allow publishing packages with no functions.
35+
- Remove the need of saving the WIT generated files in SDF packages.
4036

4137
### Changes
42-
- Replaced dashes in tables. Previously, when the state name has dashes in it, we were escaping the state name in sql context with quotes. From sdf-beta5, we should access them using `_` instead of `-` on the table name in order to avoid the escaping.
38+
- Added validation to check that output of filter-map operators are optional.
39+
- Removed `anyhow` dependencies from operators rust code, it is reexported now in the `sdfg` crate, use with `sdfg::anyhow`.
4340

4441
## InfinyOn Support
4542

4643
For any questions or issues, please contact InfinyOn support at support@infinyon.com or https://discordapp.com/invite/bBG2dTz
47-
48-
[sql mode]: cli/run.mdx#sql-mode
49-
[sql function]: concepts/sql.mdx#sql-function
50-
[dataframe states]: concepts/sql.mdx#dataframe-states

sdf_versioned_docs/version-sdf-beta5/whatsnew.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import InstallFvm from '!!raw-loader!./_embeds/install-sdf.bash';
1111

1212
## Upgrading
1313

14-
To upgrade CLI to the beta4, run the following command:
14+
To upgrade CLI to the beta5, run the following command:
1515

1616
<CodeBlock language="bash">{InstallFvm}</CodeBlock>
1717

0 commit comments

Comments
 (0)