File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ inline constexpr const char* kNotImplemented = "NOT_IMPLEMENTED";
3535
3636class SubstraitException : public std ::exception {
3737 public:
38- enum class Type {
38+ enum class Type : int8_t {
3939 // Errors where the root cause of the problem is either because of bad input
4040 // or an unsupported pattern of use are classified with USER. Examples
4141 // of errors in this category include syntax errors, unavailable names or
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ namespace io::substrait {
1313/*
1414 * \brief The four different ways plans can be represented on disk.
1515 */
16- enum class PlanFileFormat {
16+ enum class PlanFileFormat : int8_t {
1717 kBinary = 0 ,
1818 kJson = 1 ,
1919 kProtoText = 2 ,
Original file line number Diff line number Diff line change 77#include < utility>
88
99namespace substrait ::proto {
10- class Expression_Literal_Decimal ;
10+ class Expression_Literal_Decimal ; // NOLINT
1111}
1212
1313namespace io ::substrait::expression {
Original file line number Diff line number Diff line change 1919
2020namespace io ::substrait::textplan {
2121
22- enum class SymbolType {
22+ enum class SymbolType : int8_t {
2323 kExtensionSpace = 0 ,
2424 kFunction = 1 ,
2525 kPlanRelation = 2 ,
@@ -36,7 +36,7 @@ enum class SymbolType {
3636 kUnknown = -1 ,
3737};
3838
39- enum class RelationType {
39+ enum class RelationType : int8_t {
4040 // Logical
4141 kUnknown = 0 ,
4242 kRead = 1 ,
@@ -64,12 +64,12 @@ enum class RelationType {
6464 kExtensionMulti = 102 ,
6565};
6666
67- enum class RelationDetailType {
67+ enum class RelationDetailType : int8_t {
6868 kUnknown = 0 ,
6969 kExpression = 1 ,
7070};
7171
72- enum class SourceType {
72+ enum class SourceType : int8_t {
7373 kUnknown = 0 ,
7474 kLocalFiles = 1 ,
7575 kNamedTable = 2 ,
@@ -81,7 +81,7 @@ const std::string& symbolTypeName(SymbolType type);
8181
8282struct SymbolInfo {
8383 std::string name;
84- std::string alias{} ; // If present, use this instead of name.
84+ std::string alias; // If present, use this instead of name.
8585 const SymbolInfo* schema{nullptr }; // The related schema symbol if present.
8686 Location sourceLocation;
8787 Location permanentLocation{Location::kUnknownLocation };
Original file line number Diff line number Diff line change 1919
2020namespace substrait ::proto {
2121class Expression ;
22- class Expression_Literal ;
23- class Expression_Literal_Map_KeyValue ;
24- class Type_Struct ;
22+ class Expression_Literal ; // NOLINT
23+ class Expression_Literal_Map_KeyValue ; // NOLINT
24+ class Type_Struct ; // NOLINT
2525} // namespace substrait::proto
2626
2727namespace io ::substrait::textplan {
Original file line number Diff line number Diff line change 1919
2020namespace substrait ::proto {
2121class Expression ;
22- class Expression_Literal ;
23- class Expression_Literal_Map_KeyValue ;
24- class Type_Struct ;
22+ class Expression_Literal ; // NOLINT
23+ class Expression_Literal_Map_KeyValue ; // NOLINT
24+ class Type_Struct ; // NOLINT
2525} // namespace substrait::proto
2626
2727namespace io ::substrait::textplan {
You can’t perform that action at this time.
0 commit comments