GitHub
09/04/2025, 11:57 PM__alias__ expressions
Issue created by edgarrmondragon
### Feature scope
Taps (catalog, state, tests, etc.)
### Description
I'm trying to alias a stream to include the previous month/year in the name of the stream and am struggling to get an expression to work, is this something the stream maps supports or are expressions only available on the stream properties and not alias?
The following fails as Meltano can't parse the yml block. If I wrap in quotes than my stream is named as the expression without an evaluation.
Clearly I'm missing something, the below sample should name my stream MonthlyFeeExtract_Aug25
stream_maps:
stage-monthly_fee_details:
__alias__: 'MonthlyFeeExtract_' + (datetime.datetime.now() - datetime.timedelta(months=1)).strftime('%b%y')
this would be pretty straightforward to implement, changing this line
sdk/singer_sdk/mapper.py
Line 865 in</meltano/sdk/commit/c862d8d132f52afd765902d55fe0d50ab175a1c9|c862d8d>
| expr_evaluator = simpleeval.EvalWithCompoundTypes(names=names) |
| -------------------------------------------------------------- |
to
expr_evaluator = simpleeval.EvalWithCompoundTypes(names=names, functions=self.functions)https://meltano.slack.com/archives/C069CQNHDNF/p1756966557183439 meltano/sdk