Skip to content

MADlib Module Anatomy

agorajek edited this page May 13, 2011 · 13 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).

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    
                ...

Explained:

Configuration:

Adding support for other DB platforms: