Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
py-linq-sql
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
exoplanet
py-linq-sql
Merge requests
!208
Fix name in group join
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Fix name in group join
FIX_name_in_group_join
into
dev
Overview
0
Commits
4
Pipelines
2
Changes
6
Merged
Chosson Ulysse
requested to merge
FIX_name_in_group_join
into
dev
2 years ago
Overview
0
Commits
4
Pipelines
2
Changes
6
Expand
Fixed
Fix name of return column in dict in group_join with aggregate function.
0
0
Merge request reports
Compare
dev
version 1
5b151138
2 years ago
dev (base)
and
latest version
latest version
c45358a5
4 commits,
2 years ago
version 1
5b151138
3 commits,
2 years ago
6 files
+
35
−
4
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
6
Search (e.g. *.vue) (Ctrl+P)
py_linq_sql/build_request/consult.py
+
4
−
2
Options
@@ -17,7 +17,7 @@ from ..utils.classes.magicdotpath import (
from
..utils.classes.other_classes
import
Command
,
SQLEnumerableData
from
..utils.functions.aggregate_functions
import
get_aggregate
from
..utils.functions.join_functions
import
join_get_intersect
,
join_get_paths
from
..utils.functions.other_functions
import
get_columns_name
from
..utils.functions.other_functions
import
_col_name_validator
,
get_columns_name
from
..utils.functions.path_functions
import
get_path
from
..utils.functions.predicate_functions
import
get_one_predicate_as_str
from
.consult_context
import
build_order_by
,
build_where
,
define_limit_offset
@@ -277,7 +277,9 @@ def _get_selected_by(
by
.
append
(
get_path
(
value
)[
0
])
mdp_for_names
[
key
]
=
value
case
MagicDotPathAggregate
():
selected
.
append
(
get_aggregate
(
value
))
selected
.
append
(
f
"
{
get_aggregate
(
value
)
}
AS
{
_col_name_validator
(
key
)
}
"
)
case
_
:
raise
TypeError
(
"
_get_selected_by take only MagicDotPath,
"
Loading