Skip to content

Commit 223dbf3

Browse files
authored
feat: remove bitrix join experimental flag (#406)
1 parent 60efecf commit 223dbf3

File tree

1 file changed

+8
-17
lines changed
  • lib/dl_connector_bitrix_gds/dl_connector_bitrix_gds/core

1 file changed

+8
-17
lines changed

lib/dl_connector_bitrix_gds/dl_connector_bitrix_gds/core/data_source.py

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from __future__ import annotations
22

3-
import os
43
from typing import (
54
ClassVar,
65
Optional,
@@ -22,23 +21,15 @@
2221
)
2322

2423

25-
def _get_supported_join_types() -> frozenset[JoinType]:
26-
flag = os.environ.get("EXPERIMENTAL_BITRIX_ENABLE_JOIN_TYPES", "false")
27-
if flag.lower() == "true":
28-
return frozenset(
29-
{
30-
JoinType.inner,
31-
JoinType.left,
32-
JoinType.full,
33-
JoinType.right,
34-
}
35-
)
36-
37-
return frozenset()
38-
39-
4024
class BitrixGDSDataSource(PseudoSQLDataSource):
41-
supported_join_types: ClassVar[frozenset[JoinType]] = _get_supported_join_types()
25+
supported_join_types: ClassVar[frozenset[JoinType]] = frozenset(
26+
{
27+
JoinType.inner,
28+
JoinType.left,
29+
JoinType.full,
30+
JoinType.right,
31+
}
32+
)
4233
conn_type = CONNECTION_TYPE_BITRIX24
4334

4435
@property

0 commit comments

Comments
 (0)