Pre-aggregations error - Error during upload (only in v0.33.29)
- Dominant language
- Rust
- Stars
- 20.8k
- Forks
- 2.1k
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 181
Description
**Describe the bug**
I wanted to try simple pre aggregation with this simple schema
```javascript
cube(`DimAttribute`, {
sql_table: `"Oee"."DimAttribute"`,
//data_source: `default`,
joins: {},
dimensions: {
id: {
sql: `${CUBE}."Id"`,
type: `number`,
primary_key: true
},
unsid: {
sql: `${CUBE}."UnsId"`,
type: `string`
},
AttributeId: {
sql: `${CUBE}."AttributeId"`,
type: `string`
},
assetid: {
sql: `${CUBE}."AssetId"`,
type: `string`
},
isvalid: {
sql: `${CUBE}."IsValid"`,
type: `string`
},
attributenamecscz: {
sql: `${CUBE}."AttributeNameCsCz"`,
type: `string`
},
attributenameengb: {
sql: `${CUBE}."AttributeNameEnGb"`,
type: `string`
},
assetnamecscz: {
sql: `${CUBE}."AssetNameCsCz"`,
type: `string`
},
assetnameengb: {
sql: `${CUBE}."AssetNameEnGb"`,
type: `string`
}
},
measures: {
count: {
type: `count`
}
},
pre_aggregations: {
main: {
measures: [CUBE.count]
}
}
});
```
But getting this error

When not using pre aggregation part, it works smooth
EDIT
I checked it with older syntax
```javascript
cube(`DimAttribute`, {
sql: `Select *
FROM [Sidas3Reporting].[Oee].[DimAttribute]`,
//data_source: `default`,
joins: {},
dimensions: {
id: {
sql: `${CUBE}."Id"`,
type: `number`,
primary_key: true
},
unsid: {
sql: `${CUBE}."UnsId"`,
type: `string`
},
AttributeId: {
sql: `${CUBE}."AttributeId"`,
type: `string`
},
assetid: {
sql: `${CUBE}."AssetId"`,
type: `string`
},
isvalid: {
sql: `${CUBE}."IsValid"`,
type: `string`
},
attributenamecscz: {
sql: `${CUBE}."AttributeNameCsCz"`,
type: `string`
},
attributenameengb: {
sql: `${CUBE}."AttributeNameEnGb"`,
type: `string`
},
assetnamecscz: {
sql: `${CUBE}."AssetNameCsCz"`,
type: `string`
},
assetnameengb: {
sql: `${CUBE}."AssetNameEnGb"`,
type: `string`
}
},
measures: {
count: {
type: `count`
}
},
preAggregations: {
main: {
measures: [DimAttribute.count]
}
}
});
```
And **this works in v0.32.22** but not in **0.33.29**
**Version:**
0.33.29 - latest
Contributor guide
Assessment
This issue has not been assessed yet.