malloy icon indicating copy to clipboard operation
malloy copied to clipboard

renames maybe can take an expression?

Open lloydtabb opened this issue 1 year ago • 1 comments

I really want to write this.

source: raw_title is table('duckdb:data/raw_title.parquet') {
	rename: startYear is startYear::number
}

But I have to write this:

source: raw_title is table('duckdb:data/raw_title.parquet') {
	rename: _startYear is startYear
	dimension: startYear is _startYear::number 
}

lloydtabb avatar Jun 18 '23 19:06 lloydtabb

I'd be happier if we made

dimension: x is x+1

work, and then this would be dimension: startYear is startYear::number

mtoy-googly-moogly avatar Sep 21 '23 20:09 mtoy-googly-moogly