@@ -29,10 +29,7 @@ use crate::ast::{display_comma_separated, Expr, ObjectName, StructField, UnionFi
2929
3030use super :: { value:: escape_single_quote_string, ColumnDef } ;
3131
32- use crate :: ast:: Convert ;
33- use crate :: ast:: DFConvert ;
34-
35- #[ derive( Debug , Clone , PartialEq , PartialOrd , Eq , Ord , Hash , DFConvert ) ]
32+ #[ derive( Debug , Clone , PartialEq , PartialOrd , Eq , Ord , Hash ) ]
3633#[ cfg_attr( feature = "serde" , derive( Serialize , Deserialize ) ) ]
3734#[ cfg_attr( feature = "visitor" , derive( Visit , VisitMut ) ) ]
3835pub enum EnumMember {
@@ -44,7 +41,7 @@ pub enum EnumMember {
4441}
4542
4643/// SQL data types
47- #[ derive( Debug , Clone , PartialEq , PartialOrd , Eq , Ord , Hash , DFConvert ) ]
44+ #[ derive( Debug , Clone , PartialEq , PartialOrd , Eq , Ord , Hash ) ]
4845#[ cfg_attr( feature = "serde" , derive( Serialize , Deserialize ) ) ]
4946#[ cfg_attr( feature = "visitor" , derive( Visit , VisitMut ) ) ]
5047pub enum DataType {
@@ -893,7 +890,7 @@ fn format_clickhouse_datetime_precision_and_timezone(
893890}
894891
895892/// Type of brackets used for `STRUCT` literals.
896- #[ derive( Debug , Clone , PartialEq , PartialOrd , Eq , Ord , Hash , DFConvert ) ]
893+ #[ derive( Debug , Clone , PartialEq , PartialOrd , Eq , Ord , Hash ) ]
897894#[ cfg_attr( feature = "serde" , derive( Serialize , Deserialize ) ) ]
898895#[ cfg_attr( feature = "visitor" , derive( Visit , VisitMut ) ) ]
899896pub enum StructBracketKind {
@@ -907,7 +904,7 @@ pub enum StructBracketKind {
907904///
908905/// This is more related to a display information than real differences between each variant. To
909906/// guarantee compatibility with the input query we must maintain its exact information.
910- #[ derive( Debug , Copy , Clone , PartialEq , PartialOrd , Eq , Ord , Hash , DFConvert ) ]
907+ #[ derive( Debug , Copy , Clone , PartialEq , PartialOrd , Eq , Ord , Hash ) ]
911908#[ cfg_attr( feature = "serde" , derive( Serialize , Deserialize ) ) ]
912909#[ cfg_attr( feature = "visitor" , derive( Visit , VisitMut ) ) ]
913910pub enum TimezoneInfo {
@@ -1028,7 +1025,7 @@ impl fmt::Display for ExactNumberInfo {
10281025/// Information about [character length][1], including length and possibly unit.
10291026///
10301027/// [1]: https://jakewheat.github.io/sql-overview/sql-2016-foundation-grammar.html#character-length
1031- #[ derive( Debug , Copy , Clone , PartialEq , PartialOrd , Eq , Ord , Hash , DFConvert ) ]
1028+ #[ derive( Debug , Copy , Clone , PartialEq , PartialOrd , Eq , Ord , Hash ) ]
10321029#[ cfg_attr( feature = "serde" , derive( Serialize , Deserialize ) ) ]
10331030#[ cfg_attr( feature = "visitor" , derive( Visit , VisitMut ) ) ]
10341031pub enum CharacterLength {
@@ -1062,7 +1059,7 @@ impl fmt::Display for CharacterLength {
10621059/// Possible units for characters, initially based on 2016 ANSI [SQL Standard][1].
10631060///
10641061/// [1]: https://jakewheat.github.io/sql-overview/sql-2016-foundation-grammar.html#char-length-units
1065- #[ derive( Debug , Copy , Clone , PartialEq , PartialOrd , Eq , Ord , Hash , DFConvert ) ]
1062+ #[ derive( Debug , Copy , Clone , PartialEq , PartialOrd , Eq , Ord , Hash ) ]
10661063#[ cfg_attr( feature = "serde" , derive( Serialize , Deserialize ) ) ]
10671064#[ cfg_attr( feature = "visitor" , derive( Visit , VisitMut ) ) ]
10681065pub enum CharLengthUnits {
@@ -1085,7 +1082,7 @@ impl fmt::Display for CharLengthUnits {
10851082 }
10861083}
10871084
1088- #[ derive( Debug , Copy , Clone , PartialEq , PartialOrd , Eq , Ord , Hash , DFConvert ) ]
1085+ #[ derive( Debug , Copy , Clone , PartialEq , PartialOrd , Eq , Ord , Hash ) ]
10891086#[ cfg_attr( feature = "serde" , derive( Serialize , Deserialize ) ) ]
10901087#[ cfg_attr( feature = "visitor" , derive( Visit , VisitMut ) ) ]
10911088pub enum BinaryLength {
@@ -1115,7 +1112,7 @@ impl fmt::Display for BinaryLength {
11151112/// the syntax used to declare the array.
11161113///
11171114/// For example: Bigquery/Hive use `ARRAY<INT>` whereas snowflake uses ARRAY.
1118- #[ derive( Debug , Clone , PartialEq , PartialOrd , Eq , Ord , Hash , DFConvert ) ]
1115+ #[ derive( Debug , Clone , PartialEq , PartialOrd , Eq , Ord , Hash ) ]
11191116#[ cfg_attr( feature = "serde" , derive( Serialize , Deserialize ) ) ]
11201117#[ cfg_attr( feature = "visitor" , derive( Visit , VisitMut ) ) ]
11211118pub enum ArrayElemTypeDef {
0 commit comments