Trafodion

Clone Tools
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Part 1 of updates to licensing info in Trafodion source

Added NOTICE.txt file in root directory per ASF guidelines.

Updated copyright text in one directory (core/sql/sqlcomp)

as a test of a tool to update such text. One or more later

check-ins will take care of the remaining directories.

    • -11
    • +14
    /core/sql/sqlcomp/CmpDDLCatErrorCodes.h
    • -11
    • +14
    /core/sql/sqlcomp/CmpDescribe.cpp
    • -11
    • +14
    /core/sql/sqlcomp/CmpISPInterface.cpp
    • -11
    • +14
    /core/sql/sqlcomp/CmpISPInterface.h
    • -11
    • +14
    /core/sql/sqlcomp/CmpSeabaseDDL.h
    • -11
    • +14
    /core/sql/sqlcomp/CmpSeabaseDDLauth.cpp
    • -11
    • +14
    /core/sql/sqlcomp/CmpSeabaseDDLauth.h
    • -11
    • +14
    /core/sql/sqlcomp/CmpSeabaseDDLcleanup.h
    • -11
    • +14
    /core/sql/sqlcomp/CmpSeabaseDDLcommon.cpp
    • -11
    • +14
    /core/sql/sqlcomp/CmpSeabaseDDLincludes.h
  1. … 49 more files in changeset.
TRAFODION-40 Make index-maintenance delete conditional

This fixes the issue where we update an indexed column to itself, and

the index maintenance tree both deletes and re-inserts the index row

within the same millisecond. This makes the index row disappear, as the

delete takes precedence over the insert, even though it happened earlier.

As a side-effect, index maintenance may get faster, because we are

also replacing the CheckAndPut of the index insert with a Put.

We could further improve this by processing multiple Puts together.

    • -1
    • +7
    /core/sql/comexe/ComTdbHbaseAccess.cpp
    • -0
    • +11
    /core/sql/generator/GenRelUpdate.cpp
    • -1
    • +11
    /core/sql/optimizer/BindRelExpr.cpp
    • -10
    • +11
    /core/sql/optimizer/ImplRule.cpp
    • -13
    • +70
    /core/sql/optimizer/Inlining.cpp
    • -0
    • +12
    /core/sql/optimizer/NormRelExpr.cpp
Merge remote branch 'origin/master' into lob_work_files2

    • -34
    • +29
    /core/sql/sqlcomp/nadefaults.cpp
Support for chunking during insertion into lobs and extracting into external files. Currently supported for lob insert and lob extract to/from local linux files.

    • -60
    • +65
    /core/sql/executor/ExExeUtilLoad.cpp
    • -206
    • +212
    /core/sql/exp/ExpLOBaccess.cpp
    • -16
    • +16
    /core/sql/regress/executor/EXPECTED130
  1. … 3 more files in changeset.
commit #4

    • -13
    • +130
    /core/sql/regress/seabase/EXPECTED027
    • -20
    • +10
    /core/sql/sqlcomp/CmpSeabaseDDLcommon.cpp
    • -3
    • +3
    /core/sql/sqlcomp/CmpSeabaseDDLindex.cpp
    • -15
    • +15
    /core/sql/sqlcomp/CmpSeabaseDDLtable.cpp
Merge [TRAFODION-37] PR-28 T2 rowset COMMIT ROLLBACK

Merge remote branch 'origin/pr/33/head' into merge_gitpull33

Fixing Jenkins test failure of fullstack/TEST062 in release mode.

I checked in a file EXPECTED062.RELEASE, but the test was looking for

EXPECTED062.SB.RELEASE.

Merge remote branch 'origin/pr/31/head' into mrg_20

TRAFODION-38 rework for comments and release build failure.

Sorry for taking so long, Steve first had to give me a crash course

on how to navigat through the Jenkins logs to find the cause of the

failure.

    • -0
    • +1
    /core/sql/langman/LmLangManagerJava.cpp
Merge remote branch 'origin/pr/32/head' into mrg_19

Fix for [TRAFODION-14]

upsert or merge into a table with indexes can result

in inconsistency between index and table

This change avoids the HBase issue of rows getting lost when the

delete and put operations are done in the same milliseconds

timestamp dimension for the same rowid.

In the trafodion_delete operation execution, the row is skipped

for deletion if the new and old rowid evaluates to the same value.

This needs change from the compiler sub-task in the JIRA to complete

for it to be effective.

In addition removed yet another memory allocation for the delete

operation.

    • -0
    • +2
    /core/sql/comexe/ComTdbHbaseAccess.cpp
    • -3
    • +30
    /core/sql/executor/ExHbaseAccess.cpp
    • -14
    • +32
    /core/sql/executor/ExHbaseIUD.cpp
    • -12
    • +13
    /core/sql/executor/HBaseClient_JNI.cpp
TRAFODION-37

Remove unused function isUTF8.

    • -7
    • +6
    /core/conn/jdbc_type2/native/SrvrCommon.h
[TRAFODION-37]

Update for Arvind and Birdsall's comments

    • -0
    • +4
    /core/conn/jdbc_type2/native/CSrvrStmt.h
    • -6
    • +9
    /core/conn/jdbc_type2/native/SrvrKds.cpp
commit #3

    • -15
    • +133
    /core/sql/regress/seabase/EXPECTED027
    • -8
    • +18
    /core/sql/sqlcomp/CmpSeabaseDDLcommon.cpp
commit #2

    • -85
    • +94
    /core/sql/sqlcomp/CmpSeabaseDDLcommon.cpp
    • -2
    • +8
    /core/sql/sqlcomp/CmpSeabaseDDLindex.cpp
    • -42
    • +84
    /core/sql/sqlcomp/CmpSeabaseDDLtable.cpp
Merge branch 'master' of github.com:apache/incubator-trafodion into bug/udf1

Conflicts:

core/sql/sqlcomp/DefaultConstants.h

    • -0
    • +8
    /core/sql/sqlcomp/CmpSeabaseDDLcommon.cpp
    • -34
    • +27
    /core/sql/sqlcomp/nadefaults.cpp
TRAFODION-38 First working TMUDFs in Java

Also addresses:

TRAFODION-7 Have a .project file to be able to import source code into Eclipse

TRAFODION-35 Add a method that allows UDR writers to debug their UDRs on a release build

Summary of changes:

TRAFODION-7:

Eclipse project files can now be generated with the following make target in the core directory:

cd core

make eclipse

This will print out instructions on how to import the generated projects into Eclipse.

TRAFODION-35:

Java UDRs are debugged with the following CQDs:

cqd UDR_JAVA_DEBUG_PORT

cqd UDR_JAVA_DEBUG_TIMEOUT

The best way to do this is with the sqlci tool. Set UDR_JAVA_DEBUG_PORT before executing any Java UDR. Then, after executing the

first one, attach a remote Java debugger like jdb or Eclipse. To debug the very first invocation, set UDR_JAVA_DEBUG_TIMEOUT to

a time in milliseconds and attach the debugger within that time.

This debugs only the runtime part of the UDR. To debug the compiler interface, set this environment variable before starting

sqlci:

export JVM_DEBUG_PORT=12345

For both cases, here are two more things to know: First, this only works if you are connected as the DB__ROOT user (running

sqlci without special options runs as DB__ROOT). Second, if you want to debug parallel instances of UDRs, choose a multiple of

1000 for the port number. Trafdion with then add <process id> mod 1000 to the port and put all the parallel instances into Java

debugging mode on these different ports.

TRAFODION-38:

Integrating Java code written by Suresh and Pavani with the engine code for Java TMUDFs.

Addressing a few Java issues flagged by Eclipse.

Adding Java TMUDF tests to core/sql/regress/udr/TEST001.

  1. … 56 more files in changeset.
Merge [TRAFODION-41] PR-30 Allow in-memory sort for single/MC stats by default

Merge remote branch 'origin/master' into fix1

Conflicts:

core/sql/sqlcomp/DefaultConstants.h

    • -2
    • +77
    /core/sql/sqlcomp/CmpSeabaseDDLcommon.cpp
commit #1

    • -12
    • +56
    /core/sql/executor/HBaseClient.java
    • -0
    • +23
    /core/sql/parser/ParDDLFileAttrs.cpp
    • -1
    • +29
    /core/sql/parser/ParDDLFileAttrsCreateTable.h
  1. … 13 more files in changeset.
Merge remote branch 'github/master' into fixJIRA#41

Conflicts:

core/sql/sqlcomp/DefaultConstants.h

JIRA TRAFODION-41 fix. Allow in-memory sort for update stats of single/multi columns by default.

Merge remote branch 'origin/pr/29/head' into merge_traofdion30

[TRAFODION-30]dcs start fails on development workspaces when using install_local_hadoop

Fixed the local hadoop script so servers file in $DCS_INSTALL_DIR

/conf folder is generated correctly. Also took care of the default

github location for DCS/REST and Phoenix tests

    • -45
    • +40
    /core/sqf/sql/scripts/install_local_hadoop
[TRAFODION-36] showddl does not correctly displays delimited names in SALT clause

Prepare "ROLLBACK" and "COMMIT WORK" at connection phase

Get "ROLLBACK WORK" and "COMMIT WORK" transaction prepared

during the connection phase. This is for Rowsets functionality

purpose, either the "COMMIT WORK" Transactioni need to be executed

to make it work, or "ROLLBACK WORK" shall be executed for failure.

PS: This includes a few interface changes related to Rowsets logic,

the rowset implementation code will be committed in another one or

more commits in the near future. This is step 1 check-in.

    • -0
    • +27
    /core/conn/jdbc_type2/native/CoreCommon.h
    • -9
    • +29
    /core/conn/jdbc_type2/native/SrvrCommon.h
    • -2
    • +45
    /core/conn/jdbc_type2/native/SrvrKds.cpp
    • -2
    • +14
    /core/conn/jdbc_type2/native/SrvrKds.h