You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Code generation for lambdas does not work properly if the lambda declares new local declarations.
To Reproduce
package train
pipeline house {
val data = Table.fromCsvFile("data/train.csv");
val heat = data.plotCorrelationHeatmap();
val remove = data.removeColumns(["Id","MSSubClass","MSZoning","LotFrontage","LotArea","Street","Alley","LotShape","LandContour","Utilities","LotConfig","LandSlope","Neighborhood","Condition1","Condition2","BldgType","HouseStyle","OverallCond","YearBuilt","YearRemodAdd","RoofStyle","RoofMatl","Exterior1st","Exterior2nd","MasVnrType","MasVnrArea","ExterQual","ExterCond","Foundation","BsmtQual","BsmtCond","BsmtExposure","BsmtFinType1","BsmtFinSF1","BsmtFinType2","BsmtFinSF2","BsmtUnfSF","TotalBsmtSF","Heating","HeatingQC","CentralAir","Electrical","1stFlrSF","2ndFlrSF","LowQualFinSF","BsmtFullBath","BsmtHalfBath","FullBath","HalfBath","BedroomAbvGr","KitchenAbvGr","KitchenQual","TotRmsAbvGrd","Functional","Fireplaces","FireplaceQu","GarageType","GarageYrBlt","GarageFinish","GarageQual","GarageCond","PavedDrive","WoodDeckSF","OpenPorchSF","EnclosedPorch","3SsnPorch","ScreenPorch","PoolArea","PoolQC","Fence","MiscFeature","MiscVal","MoSold","YrSold","SaleType","SaleCondition"]);
val removedoutliers = remove.filterRows((row) -> ((row.getValue("GarageCars") as Int) < 4));
}
Expected behavior
Code generation should work.
Screenshots (optional)
No response
Additional Context (optional)
No response
The text was updated successfully, but these errors were encountered:
…das (#1137)
Closes#1136
### Summary of Changes
Extra statements that were generated for the expression of an expression
lambda were incorrectly placed outside the lambda. This broke the code
generation for parameters of expression lambdas that were used as
receivers of method calls (see the linked issue).
Describe the bug
Code generation for lambdas does not work properly if the lambda declares new local declarations.
To Reproduce
Expected behavior
Code generation should work.
Screenshots (optional)
No response
Additional Context (optional)
No response
The text was updated successfully, but these errors were encountered: