Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scala Codegen generates code for MapVals when simple types are being used #2

Closed
4tXJ7f opened this issue Apr 22, 2014 · 0 comments
Closed

Comments

@4tXJ7f
Copy link

4tXJ7f commented Apr 22, 2014

In some cases, the backend produces code for MapVals even though it deals with simple types. Example:

[error] test/gen/tpch1.scala:78: error: value v is not a member of String
[error]       if (SUM_QTY_SUM_BASE_PRICE_SUM_DISC_PRICE_SUM_CHARGE_AVG_QTY_AVG_PRICE_AVG_DISC_COUNT_ORDER.get((lineitem_returnflag_1.v,lineitem_linestatus_1.v))==0) SUM_QTY_SUM_BASE_PRICE_SUM_DISC_PRICE_SUM_CHARGE_AVG_QTY_AVG_PRICE_AVG_DISC_COUNT_ORDER.set((lineitem_returnflag_1.v,lineitem_linestatus_1.v),v3);
[error]                                                                                                                              ^
[error] test/gen/tpch1.scala:150: error: value v is not a member of String
[error]       if (SUM_QTY_SUM_BASE_PRICE_SUM_DISC_PRICE_SUM_CHARGE_AVG_QTY_AVG_PRICE_AVG_DISC_COUNT_ORDER.get((lineitem_returnflag_1.v,lineitem_linestatus_1.v))==0) SUM_QTY_SUM_BASE_PRICE_SUM_DISC_PRICE_SUM_CHARGE_AVG_QTY_AVG_PRICE_AVG_DISC_COUNT_ORDER.set((lineitem_returnflag_1.v,lineitem_linestatus_1.v),v13);
4tXJ7f added a commit that referenced this issue Apr 22, 2014
@4tXJ7f 4tXJ7f closed this as completed Apr 22, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant