@@ -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 {
@@ -834,7 +831,7 @@ fn format_clickhouse_datetime_precision_and_timezone(
834831}
835832
836833/// Type of brackets used for `STRUCT` literals.
837- #[ derive( Debug , Clone , PartialEq , PartialOrd , Eq , Ord , Hash , DFConvert ) ]
834+ #[ derive( Debug , Clone , PartialEq , PartialOrd , Eq , Ord , Hash ) ]
838835#[ cfg_attr( feature = "serde" , derive( Serialize , Deserialize ) ) ]
839836#[ cfg_attr( feature = "visitor" , derive( Visit , VisitMut ) ) ]
840837pub enum StructBracketKind {
@@ -848,7 +845,7 @@ pub enum StructBracketKind {
848845///
849846/// This is more related to a display information than real differences between each variant. To
850847/// guarantee compatibility with the input query we must maintain its exact information.
851- #[ derive( Debug , Copy , Clone , PartialEq , PartialOrd , Eq , Ord , Hash , DFConvert ) ]
848+ #[ derive( Debug , Copy , Clone , PartialEq , PartialOrd , Eq , Ord , Hash ) ]
852849#[ cfg_attr( feature = "serde" , derive( Serialize , Deserialize ) ) ]
853850#[ cfg_attr( feature = "visitor" , derive( Visit , VisitMut ) ) ]
854851pub enum TimezoneInfo {
@@ -927,7 +924,7 @@ impl fmt::Display for ExactNumberInfo {
927924/// Information about [character length][1], including length and possibly unit.
928925///
929926/// [1]: https://jakewheat.github.io/sql-overview/sql-2016-foundation-grammar.html#character-length
930- #[ derive( Debug , Copy , Clone , PartialEq , PartialOrd , Eq , Ord , Hash , DFConvert ) ]
927+ #[ derive( Debug , Copy , Clone , PartialEq , PartialOrd , Eq , Ord , Hash ) ]
931928#[ cfg_attr( feature = "serde" , derive( Serialize , Deserialize ) ) ]
932929#[ cfg_attr( feature = "visitor" , derive( Visit , VisitMut ) ) ]
933930pub enum CharacterLength {
@@ -961,7 +958,7 @@ impl fmt::Display for CharacterLength {
961958/// Possible units for characters, initially based on 2016 ANSI [SQL Standard][1].
962959///
963960/// [1]: https://jakewheat.github.io/sql-overview/sql-2016-foundation-grammar.html#char-length-units
964- #[ derive( Debug , Copy , Clone , PartialEq , PartialOrd , Eq , Ord , Hash , DFConvert ) ]
961+ #[ derive( Debug , Copy , Clone , PartialEq , PartialOrd , Eq , Ord , Hash ) ]
965962#[ cfg_attr( feature = "serde" , derive( Serialize , Deserialize ) ) ]
966963#[ cfg_attr( feature = "visitor" , derive( Visit , VisitMut ) ) ]
967964pub enum CharLengthUnits {
@@ -984,7 +981,7 @@ impl fmt::Display for CharLengthUnits {
984981 }
985982}
986983
987- #[ derive( Debug , Copy , Clone , PartialEq , PartialOrd , Eq , Ord , Hash , DFConvert ) ]
984+ #[ derive( Debug , Copy , Clone , PartialEq , PartialOrd , Eq , Ord , Hash ) ]
988985#[ cfg_attr( feature = "serde" , derive( Serialize , Deserialize ) ) ]
989986#[ cfg_attr( feature = "visitor" , derive( Visit , VisitMut ) ) ]
990987pub enum BinaryLength {
@@ -1014,7 +1011,7 @@ impl fmt::Display for BinaryLength {
10141011/// the syntax used to declare the array.
10151012///
10161013/// For example: Bigquery/Hive use `ARRAY<INT>` whereas snowflake uses ARRAY.
1017- #[ derive( Debug , Clone , PartialEq , PartialOrd , Eq , Ord , Hash , DFConvert ) ]
1014+ #[ derive( Debug , Clone , PartialEq , PartialOrd , Eq , Ord , Hash ) ]
10181015#[ cfg_attr( feature = "serde" , derive( Serialize , Deserialize ) ) ]
10191016#[ cfg_attr( feature = "visitor" , derive( Visit , VisitMut ) ) ]
10201017pub enum ArrayElemTypeDef {
0 commit comments