dhatchayani commented on a change in pull request #3192: [CARBONDATA-3364] Support Read from Hive. Queries are giving empty results from hive.
URL:
https://github.com/apache/carbondata/pull/3192#discussion_r285633558
##########
File path: integration/hive/src/main/java/org/apache/carbondata/hive/MapredCarbonInputFormat.java
##########
@@ -101,22 +104,22 @@ private static CarbonTable getCarbonTable(Configuration configuration, String pa
}
@Override public InputSplit[] getSplits(JobConf jobConf, int numSplits) throws IOException {
+ Random secureRandom = new SecureRandom();
+ int random = secureRandom.nextInt();
+ jobConf.set(DATABASE_NAME, "_dummyDb_" + random);
+ jobConf.set(TABLE_NAME, "_dummyTable_" + random);
Review comment:
use uuid instead
----------------------------------------------------------------
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