Github user DaveBirdsall commented on a diff in the pull request:

    https://github.com/apache/incubator-trafodion/pull/949#discussion_r100171432
  
    --- Diff: core/sql/src/main/java/org/trafodion/sql/HBaseClient.java ---
    @@ -294,15 +296,27 @@ private ChangeFlags setDescriptors(Object[] 
tableOptions,
                    break ;
                case HBASE_COMPRESSION:
                    if (tableOption.equalsIgnoreCase("GZ"))
    +          {    // throws IOException
    +              CompressionTest.testCompression(Algorithm.GZ);
                        colDesc.setCompressionType(Algorithm.GZ);
    +          }
                    else if (tableOption.equalsIgnoreCase("LZ4"))
    +          {   // throws IOException
    +              CompressionTest.testCompression(Algorithm.LZ4);
                        colDesc.setCompressionType(Algorithm.LZ4);
    +          }
                    else if (tableOption.equalsIgnoreCase("LZO"))
    +          {   // throws IOException
    +              CompressionTest.testCompression(Algorithm.LZO);
                        colDesc.setCompressionType(Algorithm.LZO);
    +          }
                    else if (tableOption.equalsIgnoreCase("NONE"))
                        colDesc.setCompressionType(Algorithm.NONE);
                    else if (tableOption.equalsIgnoreCase("SNAPPY"))
    +          {   // throws IOException
    +              CompressionTest.testCompression(Algorithm.SNAPPY);
                        colDesc.setCompressionType(Algorithm.SNAPPY); 
    +          }
    --- End diff --
    
    Should there be an exception if the tableOption isn't recognized? (Right 
now the code just ignores it.)


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to