Trafodion

Clone Tools
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Close statements while executing new query

[TRAFODION-1784]remove closed statement from HashMap

[TRAFDOION-1784][MTDCS]statement shoud be removed from HashMap when it's closed.

TrafConnection uses a HashMap to store the statements in MTDCS code.

When a statement is closed, it should be removed from the HashMap,

otherwise the JVM garbage collection couldn't delete the unused objects.

[TRAFODION-1779] Non-optimal plan chosen for a query against the created table in the same session

The CQD TRAF_RELOAD_NATABLE_CACHE can be turned on to invalidate the cache entry.

The usage will be as follows:

create table t1 ..

load into table t1 .. -->This adds the table t1 to NATable cache with estimated row count as 100

cqd traf_reload_natable_cache 'on' ;

select * from t1 -->The non-metadata table accessed by this query will be invalidated from

the NATable cache and reloaded

cqd traf_reload_natable_cache 'off'

Also removed the use of this CQD in the DDL portion of the codes because it was never used.

This CQD was used prior to introduction of query invalidation feature.

    • -12
    • +2
    /core/sql/sqlcomp/CmpSeabaseDDLcommon.cpp
    • -10
    • +1
    /core/sql/sqlcomp/CmpSeabaseDDLschema.cpp
    • -43
    • +0
    /core/sql/sqlcomp/CmpSeabaseDDLtable.cpp
[TRAFODION-1780] Switch MapReduce to local for install_local_hadoop

Merge [TRAFODION-1761] + PR-281 privilege fixes

[TRAFODION-1780] Switch MapReduce to local for install_local_hadoop

    • -1
    • +1
    /core/sqf/sql/scripts/install_local_hadoop
Merge branch 'master' of github.com:apache/incubator-trafodion into installbugfixes

Merge [TRAFODION-1774] PR 280 Use hashcode to generate statement IDs

Merge branch 'master' into priv-fixes

Fix for [TRAFODION-1703] Lower overhead in deleting old Tlog entries

Fix for [TRAFODION-1703] Lower overhead in deleting old Tlog entries

Merge up with master branch

Including adding Messages Guide to documents list

Make JDBC dependencies optional

For DCS & REST, move JDBC driver dependencies to profile in pom.xml

file. The profile is enabled by default, but this allows a command

line option to ignore them. This enables building the docs without

building the drivers.

Merge [TRAFODION-1699] PR 271 More work on Trafodion web site

Merge [TRAFODION-1778] PR 283 Fix to Update

Merge [TRAFODION-1648] PR 279 Region Split/Move work

Improvements to install_traf_components Fixed copyright issues

    • -3
    • +65
    /core/sqf/sql/scripts/install_traf_components
    • -0
    • +70
    /core/sqf/sql/scripts/restcheck
    • -0
    • +141
    /core/sqf/sql/scripts/uninstall_traf_components
  1. … 4 more files in changeset.
Privs2 - TEST140

Fixed regression issue with TEST140. TEST140 assumes standard

schema "sch" exists. In this case it does not. So changed requests

to use a different schema

    • -19
    • +37
    /core/sql/regress/privs2/EXPECTED140
Merge branch 'master' of github.com:apache/incubator-trafodion into installbugfixes

Implement TRAFODION-1420 Use ClientSmallScanner for small scans to improve perdormance Hbase implements an optimization for small scan (defined as scanning less than a data block ie 64Kb) resulting in 3X performance improvement. The underlying trick is about cutting down RPC calls from 3 (OpenScan/Next/Close) to 1, and use pread stateless instead of seek/read state-full and locking method to read data. This JIRA is about improving the compiler who can be aware if a scan will be acting on single data block (small) or not, and pass this data to executor so that it can use the right parameter for scan. (scan.setSmall(boolean)). reference: https://issues.apache.org/jira/browse/HBASE-9488 https://issues.apache.org/jira/browse/HBASE-7266

    • -14
    • +2
    /core/sql/comexe/ComTdbHbaseAccess.cpp
    • -3
    • +4
    /core/sql/executor/HBaseClient_JNI.cpp
    • -1
    • +1
    /core/sql/regress/executor/DIFF013.KNOWN
    • -14
    • +15
    /core/sql/regress/executor/EXPECTED013.SB
    • -0
    • +453
    /core/sql/regress/executor/EXPECTED131
  1. … 13 more files in changeset.
[TRAFODION-1778] Update command when HBASE_VSBB_ROWSET_OPT 'ON' fails with internal error at times

Direct buffer used in update command was not getting reset correctly when the exact number of

rows as the maximum number of rows set using CQD HBASE_VSBB_ROWSET_SIZE is buffered for rowset

operation. This caused the subsequent rowset operation to fail.

Update install_hadoop_regr_test_env

move from master branch to fix : Fix for JIRA 1712. Use of option -p in hadoop fs -mkdir

Privilege fixes for TRAFODION-12, TRAFODION-1761, and TRAFODION-1773

TRAFODION-12 Grant Revoke Enhancements

-- Revoke: added code to verify that when column privileges are revoked then

the remaining grants are is still intact. It does this by starting at the

beginning of the privilege tree and rebuilding it from top to bottom with

the requested privilege changes. If the revoke causes part of the tree to

be unaccessible (a broken branch), the revoke operation fails.

TRAFODION-1761 Grant and Revoke on table with referencing views does not work

-- When granting INSERT, UPDATE, or DELETE object privilege(s) on a table that

is referenced by one or more views, then the privilege should be granted on

any updatable views that reference the table. The grant request to the these

views should be executed as though the current user is _SYSTEM. Similarily

for revokes.

-- If the grant is performed that adds the WITH GRANT OPTION, then

the WITH GRANT OPTION is to be added to the referencing views. The

grant request should be executed as though the current user is _SYSTEM.

Similarily for revokes.

-- The problem was caused by the incorrect grantor being processed. So, added

a new field to the ObjectUsage structure that tells grant/revoke that

the grantor should be the system user. Also added change to not propagate

update privileges on non updatable views.

-- The checkin fixes object privileges; however, work is still needed to

support column level privileges and a mix between column and object level.

TRAFODION-1773 Internal error to revoke role with restrict option when there is

dependent view

-- There code (PrivMgrRoles) that determines if a specific user that owns

objects whose existence depend upon a privilege granted to the specified role

can be revoked. This code did not consider views as a referenced object type

Cleaned up PrivMgrDesc.h & PrivMgrDesc.cpp:

-- remove unused grantee field

-- added columnOrdinal which will be used to fix column privs for TRAFODION 1761

-- replaced std::bitset<NBR_OF_PRIVS> with the define PrivMgrBitmap

    • binary
    /core/sql/regress/privs1/EXPECTED141
    • -2
    • +82
    /core/sql/regress/privs2/EXPECTED135
    • -13
    • +41
    /core/sql/regress/privs2/TEST135
    • -0
    • +52
    /core/sql/sqlcomp/PrivMgrObjects.cpp
    • -155
    • +530
    /core/sql/sqlcomp/PrivMgrPrivileges.cpp
    • -3
    • +36
    /core/sql/sqlcomp/PrivMgrPrivileges.h
[TRAFODION-1776] Reduce web-site build steps

Added child modules to top-level POM file to build each document.

Must use "mvn post-site" command, so that all docs get copied into

website docs directory.

Updated documentation on building docs and website.

Updated documents (except for install_guide, since it is still in

development) to use the current Trafodion release version.

This requires sourcing the env.sh file before building docs.

    • -68
    • +16
    /docs/src/site/markdown/document.md
Anoop's delete expresssion change

    • -1
    • +1
    /core/sql/comexe/ComTdbHbaseAccess.cpp
    • -2
    • +44
    /core/sql/generator/GenRelUpdate.cpp
[TRAFODION-1774]use hashCode instead of random

[TRAFODION-1774][MT-DCS]use hashCode() instead of random to make the

stmtHandle is unique

[TRAFODION-1662] Predicate push down revisited (V2)

Fixed errorneus reference to "Neoview."

Created the initial version of the Trafodion Messages Manual. Fixed broken links between different manuals.

    • -0
    • +279
    /docs/messages_guide/pom.xml
    • -0
    • +180
    /docs/messages_guide/src/asciidoc/_chapters/about.adoc
    • -0
    • +3047
    /docs/messages_guide/src/asciidoc/_chapters/ddl_msgs.adoc
  1. … 8 more files in changeset.