PromoteHeadersMode enum

Definition

Defines strategy to promote headers when reading files

Inheritance
builtins.object
PromoteHeadersMode

Remarks

Possible enum values are:

  • NONE: Do not promote headers. Use when file(s) has no headers.
  • UNGROUPED: Promote headers from the first file. All subsequent files are considered to be just data.
  • FIRSTFILE: Promote headers from the first file. All subsequent files are considered to be just data.
  • GROUPED: Promote headers from every file. Allows to read files with inconsistent schema.
  • ALLFILES: Promote headers from every file. Allows to read files with inconsistent schema.
  • CONSTANTGROUPED: Optimized option for the case when all the files have exactly same headers. In effect this will promote headers from the first file and skip a row for every other file.
  • SAMEALLFILES: Optimized option for the case when all the files have exactly same headers. In effect this will promote headers from the first file and skip a row for every other file.

Fields

ALLFILES
CONSTANTGROUPED
FIRSTFILE
GROUPED
NONE
SAMEALLFILES
UNGROUPED