Skip to content

Commit

Permalink
Fix a problem with row len.
Browse files Browse the repository at this point in the history
Signed-off-by: Gerd Zellweger <[email protected]>
  • Loading branch information
gz committed Dec 4, 2024
1 parent c661fc8 commit 30f9019
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion client/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ impl eframe::App for SpreadsheetApp {
}
})
.body(|body| {
body.rows(Self::DEFAULT_ROW_HEIGHT, self.num_rows + 1, |mut row| {
body.rows(Self::DEFAULT_ROW_HEIGHT, self.num_rows, |mut row| {
let row_index = row.index();
row.col(|ui| {
ui.strong(row_index.to_string());
Expand Down
11 changes: 5 additions & 6 deletions feldera/program.sql
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,12 @@ create table spreadsheet_data (
"config": {
"workers": 1,
"plan": [{
"rate": 1,
"limit": 2,
"limit": 23,
"fields": {
"id": { "range": [0, 1000] },
"ip": { "strategy": "uniform", "range": [0, 5] },
"raw_value": { "values": ["42", "=A0"] },
"background": { "strategy": "uniform", "range": [0, 1000] }
"id": { "values": [1039999974, 0, 1, 2, 12, 14, 40, 66, 92, 118, 170, 196, 222, 13, 65, 91, 117, 15, 41, 67, 93, 119, 39, 144] },
"ip": { "values": ["0"] },
"raw_value": { "values": ["42", "=A39999999", "=A0", "=A0+B0", "Reference", "Functions", "=ABS(-1)", "=AVERAGE(1,2,3,1,2,3)", "={1,2,3}+{1,2,3}", "=SUM(1,2,3)", "=PRODUCT(ABS(1),2*1, 3,4*1)", "=RIGHT(\"apple\", 3)", "=LEFT(\"apple\", 3)", "Logic", "=2>=1", "=OR(1>1,1<>1)", "=AND(\"test\",\"True\", 1, true)", "Datetime", "2019-03-01T02:00:00.000Z", "2019-08-30T02:00:00.000Z", "=DAYS(P1, P2)", "=P1+5", "=XOR(0,1)", "=IF(TRUE,1,0)"] },
"background": { "strategy": "uniform", "range": [0, 1] }
}
}]
}
Expand Down

0 comments on commit 30f9019

Please sign in to comment.