You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@carbondata.apache.org by deepakmehra10 <gi...@git.apache.org> on 2016/11/04 11:32:11 UTC
[GitHub] incubator-carbondata pull request #295: Carbondata 379
GitHub user deepakmehra10 opened a pull request:
https://github.com/apache/incubator-carbondata/pull/295
Carbondata 379
Be sure to do all of the following to help us incorporate your contribution
quickly and easily:
- [ ] Make sure the PR title is formatted like:
`[CARBONDATA-<Jira issue #>] Description of pull request`
- [ ] Make sure tests pass via `mvn clean verify`. (Even better, enable
Travis-CI on your fork and ensure the whole test matrix passes).
- [ ] Replace `<Jira issue #>` in the title with the actual Jira issue
number, if there is one.
- [ ] If this contribution is large, please file an Apache
[Individual Contributor License Agreement](https://www.apache.org/licenses/icla.txt).
- [ ] Testing done
Please provide details on
- Whether new unit test cases have been added or why no new tests are required?
- What manual testing you have done?
- Any additional information to help reviewers in testing this change.
- [ ] For large changes, please consider breaking it into sub-tasks under an umbrella JIRA.
---
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/deepakmehra10/incubator-carbondata CARBONDATA-379
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/incubator-carbondata/pull/295.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #295
----
commit 84262a174c2013917c6caf4d7c2ad14fd8120fb0
Author: deepakmehra10 <de...@gmail.com>
Date: 2016-11-04T07:51:09Z
scanner package test cases added
commit 56628ab76fef65c2e3168793647ab1457a0b1826
Author: deepakmehra10 <de...@gmail.com>
Date: 2016-11-04T11:30:51Z
updated core's pom.xml
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] incubator-carbondata pull request #295: [Carbondata-379] Scan package's unit...
Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:
https://github.com/apache/incubator-carbondata/pull/295
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] incubator-carbondata pull request #295: [Carbondata-379] Scan package's unit...
Posted by ravipesala <gi...@git.apache.org>.
Github user ravipesala commented on a diff in the pull request:
https://github.com/apache/incubator-carbondata/pull/295#discussion_r87529121
--- Diff: core/src/test/java/org/apache/carbondata/scan/filter/resolver/metadata/FilterResolverMetadataTest.java ---
@@ -0,0 +1,37 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.carbondata.scan.filter.resolver.metadata;
+
+import org.junit.BeforeClass;
+import org.junit.Test;
+
+public class FilterResolverMetadataTest {
--- End diff --
Not required testcases for non business logic classes
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] incubator-carbondata pull request #295: [Carbondata-379] Scan package's unit...
Posted by ravipesala <gi...@git.apache.org>.
Github user ravipesala commented on a diff in the pull request:
https://github.com/apache/incubator-carbondata/pull/295#discussion_r87529444
--- Diff: core/src/test/java/org/apache/carbondata/scan/result/impl/NonFilterQueryScannedResultTest.java ---
@@ -0,0 +1,53 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.carbondata.scan.result.impl;
+
+import mockit.Mock;
+import mockit.MockUp;
+import org.apache.carbondata.scan.executor.infos.BlockExecutionInfo;
+import org.apache.carbondata.scan.model.QueryDimension;
+import org.apache.carbondata.scan.result.AbstractScannedResult;
+import org.junit.Before;
+import org.junit.Test;
+
+public class NonFilterQueryScannedResultTest {
+ private static NonFilterQueryScannedResult nonFilterQueryScannedResult;
+
+ @Before
+ public void setUp(){
+ BlockExecutionInfo blockExecutionInfo = new BlockExecutionInfo();
+ QueryDimension queryDimension[] = {new QueryDimension("dummyColumnName1"),new QueryDimension("dummyColumnName2")};
+ blockExecutionInfo.setQueryDimensions(queryDimension);
+ nonFilterQueryScannedResult = new NonFilterQueryScannedResult(blockExecutionInfo);
+
+ }
+
+ @Test
+ public void testIsNullMeasureValue(){
--- End diff --
this test is doing nothing, please mock it properly. We supposed to set `measureDataChunks` and call this method.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] incubator-carbondata pull request #295: [Carbondata-379] Scan package's unit...
Posted by ravipesala <gi...@git.apache.org>.
Github user ravipesala commented on a diff in the pull request:
https://github.com/apache/incubator-carbondata/pull/295#discussion_r87527367
--- Diff: core/src/main/java/org/apache/carbondata/scan/complextypes/PrimitiveQueryType.java ---
@@ -166,6 +166,7 @@ public PrimitiveQueryType(String name, String parentname, int blockIndex,
DirectDictionaryGenerator directDictionaryGenerator = DirectDictionaryKeyGeneratorFactory
.getDirectDictionaryGenerator(dataType);
actualData = directDictionaryGenerator.getValueFromSurrogate(surrgateValue);
+
--- End diff --
Please don't add space
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] incubator-carbondata issue #295: [Carbondata-379] Scan package's unit test c...
Posted by ravipesala <gi...@git.apache.org>.
Github user ravipesala commented on the issue:
https://github.com/apache/incubator-carbondata/pull/295
LGTM
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---