akashrn5 opened a new pull request #3497: [CARBONDATA-3602]Fix MV issues with session level operations
URL:
https://github.com/apache/carbondata/pull/3497
### Problems:
1. when the same timeseries query is being executed from different session, one session query is not being hit to datamap table. When the query executed from different session, the semantic equals of ScalaUDF expression fails, as object reference is different, when the object equals is checked for that.
2. When same datamap on same table, but in some other database is executed, fails with table not found error. This is because, when first time the datamap catalog map is initialized, it contains the session info, which wont be cleared when session get refreshed.
### Solution:
1. make the TimeSeriesFunction as case class, as during run time scala generates the equals method, which will check the other equality when the object reference are not equal.
2. when the session info gets updated, clear the entry in map and put again with new session info.
Be sure to do all of the following checklist to help us incorporate
your contribution quickly and easily:
- [ ] Any interfaces changed?
- [ ] Any backward compatibility impacted?
- [ ] Document update required?
- [ ] Testing done
Please provide details on
- Whether new unit test cases have been added or why no new tests are required?
- How it is tested? Please attach test report.
- Is it a performance related change? Please attach the performance test report.
- Any additional information to help reviewers in testing this change.
- [ ] For large changes, please consider breaking it into sub-tasks under an umbrella JIRA.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[hidden email]
With regards,
Apache Git Services