Python Module to parse, edit and recompile Vertica projections
- Initalize a
ProjParserobject - Set the
raw_projproperty of yourProjParserobject with the contents of aCREATE PROJECTIONscript - Then run the
parse_projectionmethod. - At that point, you can add columns to the sort order, or change from segmented to unsegmented, etc.
- Once you have made your changes to the projection, then
- Run the
recompile_projectionmethod - The recompiled projection will be stored in the
recompiled_projectionproperty