Fix uploads to edit_events table (#8318)

This PR fixes uploads the `edit_events` table.

We were trying to insert into a column that didn't exist:

```
HTTP error 500 Internal Server Error: failed to upload to table 'edit_events'

Caused by:
    bad response: Code: 16. DB::Exception: No such column os_name in table default.edit_events
```

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2024-02-23 20:58:45 -05:00 committed by GitHub
parent 622cae19eb
commit 7599933f30
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -703,11 +703,6 @@ pub struct EditEventRow {
patch: Option<i32>,
release_channel: String,
// SystemInfoBase
os_name: String,
os_version: Option<String>,
architecture: String,
// ClientEventBase
installation_id: Option<String>,
// Note: This column name has a typo in the ClickHouse table.
@ -742,9 +737,6 @@ impl EditEventRow {
minor: semver.map(|s| s.minor as i32),
patch: semver.map(|s| s.patch as i32),
release_channel: body.release_channel.clone().unwrap_or_default(),
os_name: body.os_name.clone(),
os_version: body.os_version.clone(),
architecture: body.architecture.clone(),
installation_id: body.installation_id.clone(),
session_id: body.session_id.clone(),
is_staff: body.is_staff,