Enum datafusion_python::common::data_type::SqlType
source · pub enum SqlType {
Show 48 variants
ANY,
ARRAY,
BIGINT,
BINARY,
BOOLEAN,
CHAR,
COLUMN_LIST,
CURSOR,
DATE,
DECIMAL,
DISTINCT,
DOUBLE,
DYNAMIC_STAR,
FLOAT,
GEOMETRY,
INTEGER,
INTERVAL,
INTERVAL_DAY,
INTERVAL_DAY_HOUR,
INTERVAL_DAY_MINUTE,
INTERVAL_DAY_SECOND,
INTERVAL_HOUR,
INTERVAL_HOUR_MINUTE,
INTERVAL_HOUR_SECOND,
INTERVAL_MINUTE,
INTERVAL_MINUTE_SECOND,
INTERVAL_MONTH,
INTERVAL_SECOND,
INTERVAL_YEAR,
INTERVAL_YEAR_MONTH,
MAP,
MULTISET,
NULL,
OTHER,
REAL,
ROW,
SARG,
SMALLINT,
STRUCTURED,
SYMBOL,
TIME,
TIME_WITH_LOCAL_TIME_ZONE,
TIMESTAMP,
TIMESTAMP_WITH_LOCAL_TIME_ZONE,
TINYINT,
UNKNOWN,
VARBINARY,
VARCHAR,
}
Expand description
Represents the types that are possible for DataFusion to parse from a SQL query. Aka “SqlType” and are valid values for ANSI SQL
Variants§
ANY
ARRAY
BIGINT
BINARY
BOOLEAN
CHAR
COLUMN_LIST
CURSOR
DATE
DECIMAL
DISTINCT
DOUBLE
DYNAMIC_STAR
FLOAT
GEOMETRY
INTEGER
INTERVAL
INTERVAL_DAY
INTERVAL_DAY_HOUR
INTERVAL_DAY_MINUTE
INTERVAL_DAY_SECOND
INTERVAL_HOUR
INTERVAL_HOUR_MINUTE
INTERVAL_HOUR_SECOND
INTERVAL_MINUTE
INTERVAL_MINUTE_SECOND
INTERVAL_MONTH
INTERVAL_SECOND
INTERVAL_YEAR
INTERVAL_YEAR_MONTH
MAP
MULTISET
NULL
OTHER
REAL
ROW
SARG
SMALLINT
STRUCTURED
SYMBOL
TIME
TIME_WITH_LOCAL_TIME_ZONE
TIMESTAMP
TIMESTAMP_WITH_LOCAL_TIME_ZONE
TINYINT
UNKNOWN
VARBINARY
VARCHAR
Trait Implementations§
source§impl Ord for SqlType
impl Ord for SqlType
source§impl PartialEq<SqlType> for SqlType
impl PartialEq<SqlType> for SqlType
source§impl PartialOrd<SqlType> for SqlType
impl PartialOrd<SqlType> for SqlType
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl PyClassImpl for SqlType
impl PyClassImpl for SqlType
source§const IS_BASETYPE: bool = false
const IS_BASETYPE: bool = false
#[pyclass(subclass)]
source§const IS_SUBCLASS: bool = false
const IS_SUBCLASS: bool = false
#[pyclass(extends=…)]
source§const IS_MAPPING: bool = false
const IS_MAPPING: bool = false
#[pyclass(mapping)]
source§const IS_SEQUENCE: bool = false
const IS_SEQUENCE: bool = false
#[pyclass(sequence)]
§type ThreadChecker = ThreadCheckerStub<SqlType>
type ThreadChecker = ThreadCheckerStub<SqlType>
This handles following two situations: Read more
§type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
Immutable or mutable
§type BaseNativeType = PyAny
type BaseNativeType = PyAny
The closest native ancestor. This is
PyAny
by default, and when you declare
#[pyclass(extends=PyDict)]
, it’s PyDict
.fn items_iter() -> PyClassItemsIter
fn dict_offset() -> Option<isize>
fn weaklist_offset() -> Option<isize>
source§impl PyTypeInfo for SqlType
impl PyTypeInfo for SqlType
§type AsRefTarget = PyCell<SqlType>
type AsRefTarget = PyCell<SqlType>
Utility type to make Py::as_ref work.
source§fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
Returns the PyTypeObject instance for this type.
source§fn type_object(py: Python<'_>) -> &PyType
fn type_object(py: Python<'_>) -> &PyType
Returns the safe abstraction over the type object.
source§fn is_type_of(object: &PyAny) -> bool
fn is_type_of(object: &PyAny) -> bool
Checks if
object
is an instance of this type or a subclass of this type.source§fn is_exact_type_of(object: &PyAny) -> bool
fn is_exact_type_of(object: &PyAny) -> bool
Checks if
object
is an instance of this type.impl Eq for SqlType
impl StructuralEq for SqlType
impl StructuralPartialEq for SqlType
Auto Trait Implementations§
impl RefUnwindSafe for SqlType
impl Send for SqlType
impl Sync for SqlType
impl Unpin for SqlType
impl UnwindSafe for SqlType
Blanket Implementations§
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.