Skip to content

MADlib Module Anatomy

agorajek edited this page May 13, 2011 · 8 revisions

This page explains all the elements needed to sucesfully develop and plug-in a new MADlib module.

Say you want to write a new MADlib module called NewModule (code name: newmod).

1. Module elements (source tree view):

./src/
    modules/
        newmod/              # (REQUIRED) new directory for the module code
            newmod.sql_in    # (REQUIRED) SQL file to create DB objects
            newmod.py_in     # (optional) Python code
            test/            # (optional) directory for SQL test scripts
                newmod.test1.sql_in    
                newmod.test2.sql_in    
                ...

2. Explained:

3. Configuration:

4. Adding support for other DB platforms: