https://sqlite.org/forum/forumpost/d3bad034ce32e6f9? https://docs.snowflake.com/en/user-guide/data-unload-considerations
| 39 | } else if constexpr (std::is_same_v<PT, bol_pt>) { |
| 40 | return val_str == "true"; |
| 41 | } else if constexpr (std::is_same_v<PT, flt_pt>) { |
| 42 | return stof(val_str); |
| 43 | } else if constexpr (std::is_same_v<PT, dbl_pt>) { |
| 44 | return stod(val_str); |
| 45 | } else if constexpr (std::is_same_v<PT, str_pt>) { |
| 46 | return val_str; |
| 47 | } |
| 48 | FLS_UNREACHABLE(); |
| 49 | return {}; |
| 50 | } |
| 51 | |
| 52 | template <typename PT> |
| 53 | PT Attribute<PT>::Null() { |
| 54 | static constexpr i08_pt I08_NULL = 0; |
| 55 | static constexpr i16_pt I16_NULL = 0; |
| 56 | static constexpr i32_pt I32_NULL = 0; |
| 57 | static constexpr i64_pt I64_NULL = 0; |
| 58 | static constexpr u08_pt U08_NULL = 0; |
| 59 | static constexpr u16_pt U16_NULL = 0; |
| 60 | static constexpr u32_pt U32_NULL = 0; |
| 61 | static constexpr u64_pt U64_NULL = 0; |
| 62 | static constexpr bol_pt BOOL_NULL = false; |
| 63 | static constexpr flt_pt FLOAT_NULL = 0.0; |
no test coverage detected