File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed
Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -785,10 +785,10 @@ def _bitshift_sql(
785785 this = expression .this
786786
787787 # Ensure type annotation is available for nested expressions
788- if not this .type :
789- from sqlglot .optimizer .annotate_types import annotate_types
790-
791- this = annotate_types (this , dialect = self .dialect )
788+ # if not this.type:
789+ # from sqlglot.optimizer.annotate_types import annotate_types
790+ #
791+ # this = annotate_types(this, dialect=self.dialect)
792792
793793 # Deal with binary separately, remember the original type, cast back later
794794 if _is_binary (this ):
Original file line number Diff line number Diff line change 297297 exp .HexString : {
298298 "annotator" : lambda self , e : self ._set_type (
299299 e ,
300- exp .DataType .Type .BIGINT
301- if self .dialect .HEX_STRING_IS_INTEGER_TYPE
302- else exp .DataType .Type .BINARY ,
300+ exp .DataType .Type .BIGINT if e .args .get ("is_integer" ) else exp .DataType .Type .BINARY ,
303301 )
304302 },
305303 exp .GenerateSeries : {
You can’t perform that action at this time.
0 commit comments