[GitHub] [carbondata] ShreelekhyaG commented on a change in pull request #3914: [CARBONDATA-3979] Added Hive local dictionary support example

2020-10-09 Thread GitBox


ShreelekhyaG commented on a change in pull request #3914:
URL: https://github.com/apache/carbondata/pull/3914#discussion_r501455143



##
File path: 
integration/hive/src/test/java/org/apache/carbondata/hive/HiveCarbonTest.java
##
@@ -211,6 +248,85 @@ public void testStructType() throws Exception {
 checkAnswer(carbonResult, hiveResult);
   }
 
+  private ArrayList getDimRawChunk(Integer blockindex)
+  throws IOException {
+File rootPath = new File(HiveTestUtils.class.getResource("/").getPath() + 
"../../../..");
+String storePath = rootPath.getAbsolutePath() + 
"/integration/hive/target/warehouse/warehouse/hive_carbon_table/";
+CarbonFile[] dataFiles = FileFactory.getCarbonFile(storePath)
+.listFiles(new CarbonFileFilter() {
+  @Override
+  public boolean accept(CarbonFile file) {
+if (file.getName().endsWith(CarbonCommonConstants.FACT_FILE_EXT)) {
+  return true;
+} else {
+  return false;
+}
+  }
+});
+ArrayList dimensionRawColumnChunks = 
read(dataFiles[0].getAbsolutePath(),
+blockindex);
+return dimensionRawColumnChunks;
+  }
+
+  private ArrayList read(String filePath, Integer 
blockIndex) throws IOException {

Review comment:
   Done. 





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:
us...@infra.apache.org




[GitHub] [carbondata] ShreelekhyaG commented on a change in pull request #3914: [CARBONDATA-3979] Added Hive local dictionary support example

2020-10-07 Thread GitBox


ShreelekhyaG commented on a change in pull request #3914:
URL: https://github.com/apache/carbondata/pull/3914#discussion_r501455143



##
File path: 
integration/hive/src/test/java/org/apache/carbondata/hive/HiveCarbonTest.java
##
@@ -211,6 +248,85 @@ public void testStructType() throws Exception {
 checkAnswer(carbonResult, hiveResult);
   }
 
+  private ArrayList getDimRawChunk(Integer blockindex)
+  throws IOException {
+File rootPath = new File(HiveTestUtils.class.getResource("/").getPath() + 
"../../../..");
+String storePath = rootPath.getAbsolutePath() + 
"/integration/hive/target/warehouse/warehouse/hive_carbon_table/";
+CarbonFile[] dataFiles = FileFactory.getCarbonFile(storePath)
+.listFiles(new CarbonFileFilter() {
+  @Override
+  public boolean accept(CarbonFile file) {
+if (file.getName().endsWith(CarbonCommonConstants.FACT_FILE_EXT)) {
+  return true;
+} else {
+  return false;
+}
+  }
+});
+ArrayList dimensionRawColumnChunks = 
read(dataFiles[0].getAbsolutePath(),
+blockindex);
+return dimensionRawColumnChunks;
+  }
+
+  private ArrayList read(String filePath, Integer 
blockIndex) throws IOException {

Review comment:
   Done. 





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:
us...@infra.apache.org