Skip to content

Commit 7d2b3ab

Browse files
authored
Added op to Join operators (#216)
1 parent fe452b8 commit 7d2b3ab

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/vtlengine/Operators/Join.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import pandas as pd
1010

1111
from vtlengine.AST import BinOp
12+
from vtlengine.AST.Grammar.tokens import CROSS_JOIN, FULL_JOIN, INNER_JOIN, LEFT_JOIN
1213
from vtlengine.DataTypes import binary_implicit_promotion
1314
from vtlengine.Exceptions import SemanticError
1415
from vtlengine.Model import Component, Dataset, Role
@@ -276,6 +277,7 @@ def identifiers_validation(cls, operands: List[Dataset], using: Optional[List[st
276277

277278

278279
class InnerJoin(Join):
280+
op = INNER_JOIN
279281
how = "inner"
280282

281283
@classmethod
@@ -296,10 +298,12 @@ def generate_result_components(
296298

297299

298300
class LeftJoin(Join):
301+
op = LEFT_JOIN
299302
how = "left"
300303

301304

302305
class FullJoin(Join):
306+
op = FULL_JOIN
303307
how = "outer"
304308

305309
@classmethod
@@ -320,6 +324,7 @@ def identifiers_validation(
320324

321325

322326
class CrossJoin(Join):
327+
op = CROSS_JOIN
323328
how = "cross"
324329

325330
@classmethod

0 commit comments

Comments
 (0)