Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.9.0
    • Component/s: None
    • Labels:
      None

      Description

      Tajo should support TRUNCATE table feature.

      TRUNCATE [TABLE] <table name1> [, <table name2>, ...]
      

        Activity

        Hide
        hudson Hudson added a comment -

        SUCCESS: Integrated in Tajo-master-build #239 (See https://builds.apache.org/job/Tajo-master-build/239/)
        TAJO-860: Implements TRUNCATE table. (missed github closes) (hyunsik: rev ace1d47effd83a4c9409c85ffaf14ba83c385b3f)

        • CHANGES
        Show
        hudson Hudson added a comment - SUCCESS: Integrated in Tajo-master-build #239 (See https://builds.apache.org/job/Tajo-master-build/239/ ) TAJO-860 : Implements TRUNCATE table. (missed github closes) (hyunsik: rev ace1d47effd83a4c9409c85ffaf14ba83c385b3f) CHANGES
        Hide
        hudson Hudson added a comment -

        SUCCESS: Integrated in Tajo-master-build #238 (See https://builds.apache.org/job/Tajo-master-build/238/)
        TAJO-860: Implements TRUNCATE table. (Hyoungjun Kim via hyunsik) (hyunsik: rev 13af1fa129ac13f6f04eab7ef4b44d605a9fcc49)

        • tajo-core/src/main/antlr4/org/apache/tajo/engine/parser/SQLLexer.g4
        • tajo-core/src/main/java/org/apache/tajo/engine/planner/LogicalPlanner.java
        • tajo-core/src/main/java/org/apache/tajo/master/GlobalEngine.java
        • tajo-core/src/main/java/org/apache/tajo/engine/planner/BaseAlgebraVisitor.java
        • tajo-core/src/main/java/org/apache/tajo/engine/parser/SQLAnalyzer.java
        • tajo-core/src/test/resources/queries/TestTruncateTable/table1_ddl.sql
        • CHANGES
        • tajo-core/src/main/java/org/apache/tajo/engine/planner/logical/TruncateTableNode.java
        • tajo-core/src/main/java/org/apache/tajo/engine/planner/AlgebraVisitor.java
        • tajo-core/src/test/java/org/apache/tajo/engine/query/TestTruncateTable.java
        • tajo-core/src/main/antlr4/org/apache/tajo/engine/parser/SQLParser.g4
        • tajo-core/src/main/java/org/apache/tajo/engine/planner/LogicalPlanVisitor.java
        • tajo-algebra/src/main/java/org/apache/tajo/algebra/TruncateTable.java
        • tajo-core/src/main/java/org/apache/tajo/engine/planner/LogicalPlanPreprocessor.java
        • tajo-core/src/test/resources/dataset/TestTruncateTable/truncate_table2/table2.tbl
        • tajo-core/src/main/java/org/apache/tajo/engine/planner/BasicLogicalPlanVisitor.java
        • tajo-algebra/src/main/java/org/apache/tajo/algebra/OpType.java
        • tajo-core/src/main/java/org/apache/tajo/engine/planner/logical/NodeType.java
        • tajo-core/src/main/java/org/apache/tajo/engine/planner/PlannerUtil.java
        • tajo-core/src/test/resources/queries/TestTruncateTable/table2_ddl.sql
        Show
        hudson Hudson added a comment - SUCCESS: Integrated in Tajo-master-build #238 (See https://builds.apache.org/job/Tajo-master-build/238/ ) TAJO-860 : Implements TRUNCATE table. (Hyoungjun Kim via hyunsik) (hyunsik: rev 13af1fa129ac13f6f04eab7ef4b44d605a9fcc49) tajo-core/src/main/antlr4/org/apache/tajo/engine/parser/SQLLexer.g4 tajo-core/src/main/java/org/apache/tajo/engine/planner/LogicalPlanner.java tajo-core/src/main/java/org/apache/tajo/master/GlobalEngine.java tajo-core/src/main/java/org/apache/tajo/engine/planner/BaseAlgebraVisitor.java tajo-core/src/main/java/org/apache/tajo/engine/parser/SQLAnalyzer.java tajo-core/src/test/resources/queries/TestTruncateTable/table1_ddl.sql CHANGES tajo-core/src/main/java/org/apache/tajo/engine/planner/logical/TruncateTableNode.java tajo-core/src/main/java/org/apache/tajo/engine/planner/AlgebraVisitor.java tajo-core/src/test/java/org/apache/tajo/engine/query/TestTruncateTable.java tajo-core/src/main/antlr4/org/apache/tajo/engine/parser/SQLParser.g4 tajo-core/src/main/java/org/apache/tajo/engine/planner/LogicalPlanVisitor.java tajo-algebra/src/main/java/org/apache/tajo/algebra/TruncateTable.java tajo-core/src/main/java/org/apache/tajo/engine/planner/LogicalPlanPreprocessor.java tajo-core/src/test/resources/dataset/TestTruncateTable/truncate_table2/table2.tbl tajo-core/src/main/java/org/apache/tajo/engine/planner/BasicLogicalPlanVisitor.java tajo-algebra/src/main/java/org/apache/tajo/algebra/OpType.java tajo-core/src/main/java/org/apache/tajo/engine/planner/logical/NodeType.java tajo-core/src/main/java/org/apache/tajo/engine/planner/PlannerUtil.java tajo-core/src/test/resources/queries/TestTruncateTable/table2_ddl.sql
        Hide
        hyunsik Hyunsik Choi added a comment -

        committed it to master.

        Show
        hyunsik Hyunsik Choi added a comment - committed it to master.
        Hide
        githubbot ASF GitHub Bot added a comment -

        Github user asfgit closed the pull request at:

        https://github.com/apache/tajo/pull/29

        Show
        githubbot ASF GitHub Bot added a comment - Github user asfgit closed the pull request at: https://github.com/apache/tajo/pull/29
        Hide
        githubbot ASF GitHub Bot added a comment -

        Github user hyunsik commented on the pull request:

        https://github.com/apache/tajo/pull/29#issuecomment-45388962

        +1

        Excellent work. There is no comment. I'll commit it shortly.

        Show
        githubbot ASF GitHub Bot added a comment - Github user hyunsik commented on the pull request: https://github.com/apache/tajo/pull/29#issuecomment-45388962 +1 Excellent work. There is no comment. I'll commit it shortly.
        Hide
        hjkim Hyoungjun Kim added a comment -

        I think that Tajo should not be able to truncate a external table because a wrong path like '/user' can make a serious problem.

        Show
        hjkim Hyoungjun Kim added a comment - I think that Tajo should not be able to truncate a external table because a wrong path like '/user' can make a serious problem.
        Hide
        githubbot ASF GitHub Bot added a comment -

        GitHub user babokim opened a pull request:

        https://github.com/apache/tajo/pull/29

        TAJO-860: Implements TRUNCATE table.

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

        $ git pull https://github.com/babokim/tajo TAJO-860

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

        https://github.com/apache/tajo/pull/29.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 #29


        commit 17230374e2a952de4cf04aa2d5fdceef1184f51e
        Author: 김형준 <babokim@babokim-macbook-pro.local>
        Date: 2014-06-02T06:50:24Z

        TAJO-860: Implements TRUNCATE table.


        Show
        githubbot ASF GitHub Bot added a comment - GitHub user babokim opened a pull request: https://github.com/apache/tajo/pull/29 TAJO-860 : Implements TRUNCATE table. You can merge this pull request into a Git repository by running: $ git pull https://github.com/babokim/tajo TAJO-860 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/tajo/pull/29.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 #29 commit 17230374e2a952de4cf04aa2d5fdceef1184f51e Author: 김형준 <babokim@babokim-macbook-pro.local> Date: 2014-06-02T06:50:24Z TAJO-860 : Implements TRUNCATE table.

          People

          • Assignee:
            hjkim Hyoungjun Kim
            Reporter:
            hjkim Hyoungjun Kim
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development