You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@carbondata.apache.org by scwf <gi...@git.apache.org> on 2016/12/03 04:53:07 UTC

[GitHub] incubator-carbondata pull request #386: Fix spark2 decimal issue

GitHub user scwf opened a pull request:

    https://github.com/apache/incubator-carbondata/pull/386

    Fix spark2 decimal issue

    also added a test suite for decimal

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/KirinKing/incubator-carbondata fix-decimal

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-carbondata/pull/386.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #386
    
----
commit 4da98d3c54021d8744809df0e779fac2dbc34a5a
Author: wangfei <wa...@126.com>
Date:   2016-12-03T04:44:07Z

    fix spark2 decimal

commit f351c8d6e586019d13a087dddaddb759127ab948
Author: wangfei <wa...@126.com>
Date:   2016-12-03T04:52:30Z

    code clean

----


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

[GitHub] incubator-carbondata pull request #386: [CARBONDATA-489] Fix spark2 decimal ...

Posted by jackylk <gi...@git.apache.org>.
Github user jackylk commented on a diff in the pull request:

    https://github.com/apache/incubator-carbondata/pull/386#discussion_r90751764
  
    --- Diff: integration/spark2/src/main/scala/org/apache/spark/sql/hive/CarbonMetastore.scala ---
    @@ -125,6 +125,16 @@ class CarbonMetastore(conf: RuntimeConfig, val storePath: String) extends Loggin
         tableCreationTime
       }
     
    +  def cleanStore(): Unit = {
    +    try {
    +      val fileType = FileFactory.getFileType(storePath)
    +      FileFactory.deleteFile(storePath, fileType)
    +    } catch {
    +      case e => logError("clean store failed", e)
    --- End diff --
    
    use LOGGER and remove extension from Logging


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

[GitHub] incubator-carbondata pull request #386: Fix spark2 decimal issue

Posted by scwf <gi...@git.apache.org>.
Github user scwf commented on a diff in the pull request:

    https://github.com/apache/incubator-carbondata/pull/386#discussion_r90750992
  
    --- Diff: core/src/main/java/org/apache/carbondata/core/datastorage/store/impl/FileFactory.java ---
    @@ -397,6 +397,38 @@ public static boolean createNewFile(String filePath, FileType fileType) throws I
         }
       }
     
    +  public static boolean deleteFile(String filePath, FileType fileType) throws IOException {
    --- End diff --
    
    added for carbon metasore to clean store path


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

[GitHub] incubator-carbondata issue #386: [CARBONDATA-489] Fix spark2 decimal issue

Posted by jackylk <gi...@git.apache.org>.
Github user jackylk commented on the issue:

    https://github.com/apache/incubator-carbondata/pull/386
  
    LGTM


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

[GitHub] incubator-carbondata pull request #386: [CARBONDATA-489] Fix spark2 decimal ...

Posted by jackylk <gi...@git.apache.org>.
Github user jackylk commented on a diff in the pull request:

    https://github.com/apache/incubator-carbondata/pull/386#discussion_r90751737
  
    --- Diff: pom.xml ---
    @@ -309,9 +309,6 @@
         </profile>
         <profile>
           <id>spark-1.5</id>
    -      <activation>
    --- End diff --
    
    do not modify this


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

[GitHub] incubator-carbondata pull request #386: [CARBONDATA-489] Fix spark2 decimal ...

Posted by jackylk <gi...@git.apache.org>.
Github user jackylk commented on a diff in the pull request:

    https://github.com/apache/incubator-carbondata/pull/386#discussion_r90751746
  
    --- Diff: integration/spark2/src/test/scala/org/apache/spark/carbondata/CarbonDataSourceSuite.scala ---
    @@ -30,14 +30,15 @@ class CarbonDataSourceSuite extends FunSuite with BeforeAndAfterAll {
           .appName("CarbonExample")
           .enableHiveSupport()
           .config(CarbonCommonConstants.STORE_LOCATION,
    -        s"examples/spark2/target/store")
    +        s"/user/hive/warehouse/store")
    --- End diff --
    
    Is it ok to hard code this? how about in non-linux?


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

[GitHub] incubator-carbondata pull request #386: [CARBONDATA-489] Fix spark2 decimal ...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/incubator-carbondata/pull/386


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

[GitHub] incubator-carbondata pull request #386: [CARBONDATA-489] Fix spark2 decimal ...

Posted by jackylk <gi...@git.apache.org>.
Github user jackylk commented on a diff in the pull request:

    https://github.com/apache/incubator-carbondata/pull/386#discussion_r90751754
  
    --- Diff: integration/spark2/src/main/scala/org/apache/spark/sql/hive/CarbonMetastore.scala ---
    @@ -125,6 +125,16 @@ class CarbonMetastore(conf: RuntimeConfig, val storePath: String) extends Loggin
         tableCreationTime
       }
     
    +  def cleanStore(): Unit = {
    +    try {
    +      val fileType = FileFactory.getFileType(storePath)
    +      FileFactory.deleteFile(storePath, fileType)
    +    } catch {
    +      case e => logError("clean store failed", e)
    +    }
    +
    --- End diff --
    
    remove empty 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.
---