carbondata-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jackylk <...@git.apache.org>
Subject [GitHub] incubator-carbondata pull request #512: [CARBONDATA-582]added validation for...
Date Wed, 11 Jan 2017 07:41:36 GMT
Github user jackylk commented on a diff in the pull request:

    https://github.com/apache/incubator-carbondata/pull/512#discussion_r95524878
  
    --- Diff: integration/spark2/src/test/scala/org/apache/spark/carbondata/bucketing/TableBucketingTestCase.scala
---
    @@ -63,6 +65,23 @@ class TableBucketingTestCase extends QueryTest with BeforeAndAfterAll
{
         }
       }
     
    +  test("must be unable to create if number of buckets is in negative number"){
    +    try {
    +      sql(
    +        """
    +           CREATE TABLE t9
    +           (ID Int, date Timestamp, country String,
    +           name String, phonetype String, serialname String, salary Int)
    +           USING org.apache.spark.sql.CarbonSource
    +           OPTIONS("bucketnumber"="-1", "bucketcolumns"="name", "tableName"="t9")
    +      """)
    +      assert(false)
    +      }
    +    catch {
    --- End diff --
    
    move to previous line


---
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.
---

Mime
View raw message