GitHub user zellerh opened a pull request:

    https://github.com/apache/incubator-trafodion/pull/31

    Bug/udf1

    

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

    $ git pull https://github.com/zellerh/incubator-trafodion bug/udf1

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

    https://github.com/apache/incubator-trafodion/pull/31.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 #31
    
----
commit ee5a6fffc079113d8b6399ba8e50b930fa95cb94
Author: Hans Zeller <[email protected]>
Date:   2015-07-18T17:54:12Z

    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.

commit 44d5278c3dcd9dc7e795eee4b88607fd4459e667
Author: Hans Zeller <[email protected]>
Date:   2015-07-18T18:02:31Z

    Merge branch 'master' of github.com:apache/incubator-trafodion into bug/udf1
    
    Conflicts:
        core/sql/sqlcomp/DefaultConstants.h

----


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to