Open philip-stoev opened 1 year ago
A less bad feeling workaround is to create a non-materialized view on top of v1 that adds names, and then use that in the sink. No dropping of the original materialized view required!
A short term proposal: add a HINT for the above that suggests the user create the non-materialized view
Longer term (cc @ggnall): compute the set of unsupported characters/names that we support but AVRO does not, and either a) preemptively error rather than waiting for the kafka error b) provide an option (or by default) convert the column name to a supported autogenerated name
What version of Materialize are you using?
v0.33.0-dev (74f61e77a)
How did you install Materialize?
Docker image
What is the issue?
If one attempts to create a sink over a view that uses implicit column names, the following error occurs:
In this context, autogenerated names are column names like
?column?
that Mz gives implicitly to columns containing an expression, e.g.10/f1
To reproduce:
A work-around would be to name such column explicitly in the view , like this:
however this requires dropping and re-creating the view, causing it to be recomputed from scratch.
Relevant log output
No response