File tree 7 files changed +8
-16
lines changed
7 files changed +8
-16
lines changed Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ def _exists_subquery(t, op):
138
138
filtered = (
139
139
op .foreign_table .to_expr ()
140
140
.filter ([pred .to_expr () for pred in op .predicates ])
141
- .projection ([ir .literal (1 ).name (ir . core . unnamed )])
141
+ .projection ([ir .literal (1 ).name ("" )])
142
142
)
143
143
144
144
sub_ctx = ctx .subcontext ()
Original file line number Diff line number Diff line change 8
8
import ibis .common .exceptions as com
9
9
import ibis .expr .operations as ops
10
10
from ibis .backends .base .sql .registry import operation_registry , quote_identifier
11
- from ibis .expr .types .core import unnamed
12
11
13
12
14
13
class QueryContext :
@@ -199,7 +198,7 @@ def _needs_name(self, op):
199
198
# This column has been given an explicitly different name
200
199
return False
201
200
202
- return op .name is not unnamed
201
+ return bool ( op .name )
203
202
204
203
def name (self , translated , name , force = True ):
205
204
return f'{ translated } AS { quote_identifier (name , force = force )} '
Original file line number Diff line number Diff line change @@ -166,7 +166,7 @@ def table_column(translator, op):
166
166
def exists_subquery (translator , op ):
167
167
ctx = translator .context
168
168
169
- dummy = ir .literal (1 ).name (ir . core . unnamed )
169
+ dummy = ir .literal (1 ).name ("" )
170
170
171
171
filtered = op .foreign_table .to_expr ().filter (
172
172
[pred .to_expr () for pred in op .predicates ]
Original file line number Diff line number Diff line change 8
8
import ibis .expr .rules as rlz
9
9
from ibis .common .graph import Node as Traversable
10
10
from ibis .common .grounds import Concrete
11
- from ibis .util import UnnamedMarker , deprecated
11
+ from ibis .util import deprecated
12
12
13
13
if TYPE_CHECKING :
14
14
import ibis .expr .datatypes as dt
@@ -92,7 +92,7 @@ def to_expr(self):
92
92
@public
93
93
class Alias (Value ):
94
94
arg = rlz .any
95
- name = rlz .instance_of (( str , UnnamedMarker ) )
95
+ name = rlz .instance_of (str )
96
96
97
97
output_shape = rlz .shape_like ("arg" )
98
98
output_dtype = rlz .dtype_like ("arg" )
Original file line number Diff line number Diff line change 10
10
from ibis .common .exceptions import IntegrityError
11
11
from ibis .common .grounds import Concrete
12
12
from ibis .common .validators import instance_of , tuple_of , validator
13
- from ibis .util import UnnamedMarker , indent
13
+ from ibis .util import indent
14
14
15
15
if TYPE_CHECKING :
16
16
import pandas as pd
@@ -46,7 +46,7 @@ def datatype(arg, **kwargs):
46
46
class Schema (Concrete ):
47
47
"""An object for holding table schema information."""
48
48
49
- names = tuple_of (instance_of (( str , UnnamedMarker ) ))
49
+ names = tuple_of (instance_of (str ))
50
50
"""A sequence of [`str`][str] indicating the name of each column."""
51
51
types = tuple_of (datatype )
52
52
"""A sequence of [DataType][ibis.expr.datatypes.DataType] objects
Original file line number Diff line number Diff line change 13
13
from ibis .common .exceptions import IbisError , IbisTypeError , TranslationError
14
14
from ibis .common .grounds import Immutable
15
15
from ibis .config import _default_backend , options
16
- from ibis .util import UnnamedMarker , experimental
16
+ from ibis .util import experimental
17
17
18
18
if TYPE_CHECKING :
19
19
import pyarrow as pa
@@ -381,9 +381,6 @@ def as_table(self) -> ir.Table:
381
381
raise NotImplementedError (type (self ))
382
382
383
383
384
- unnamed = UnnamedMarker ()
385
-
386
-
387
384
def _binop (
388
385
op_class : type [ops .Binary ], left : ir .Value , right : ir .Value
389
386
) -> ir .Value | NotImplemented :
Original file line number Diff line number Diff line change @@ -89,10 +89,6 @@ def __repr__(self):
89
89
return f"{ self .__class__ .__name__ } ({ super ().__repr__ ()} )"
90
90
91
91
92
- class UnnamedMarker :
93
- pass
94
-
95
-
96
92
def guid () -> str :
97
93
"""Return a uuid4 hexadecimal value."""
98
94
return uuid4 ().hex
You can’t perform that action at this time.
0 commit comments