Skip to content

Commit

Permalink
Change .orc to orc/ .parquet to parquet/ .avro to avro when importing…
Browse files Browse the repository at this point in the history
… files to make it more flexible.
  • Loading branch information
Eugene committed Feb 12, 2020
1 parent 8d71eb7 commit 1d66df0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/eugene/controller/Renderer.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ public boolean loadAndShow(){
String absolutePath = selectedFile.getAbsolutePath();
Path path = new Path(absolutePath);
DataParser dataParser;
if (absolutePath.endsWith(".orc")){
if (absolutePath.endsWith("orc")){
dataParser = new ORCDataParser();
}else if(absolutePath.endsWith(".avro")){
}else if(absolutePath.endsWith("avro")){
dataParser = new AVRODataParser();
}else{
dataParser = new ParquetDataParser();
Expand Down

0 comments on commit 1d66df0

Please sign in to comment.