Rate This Document
Findability
Accuracy
Completeness
Readability

Fall-through Occurs During Greenplum Compilation

Symptom

Fall-through occurs during Greenplum compilation, and the following information is displayed:

Key Process and Cause Analysis

The switch statement in the code does not contain the break statement. During Greenplum compilation, warn is directly defined as an error.

Conclusion and Solution

  1. Open the gpdb-6.12.1/gpMgmt/bin/pythonSrc/PyGreSQL-4.0/pgmodule.c file.
  2. Press i to enter the insert mode and add /* fallthrough */ to lines 1998 and 2122.
    /* fallthrough */ 

  3. Press Esc, type :wq!, and press Enter to save the file and exit.