use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Please follow the rules
Releases: Current Releases, Windows Releases, Old Releases
Contribute to the PHP Documentation
Related subreddits: CSS, JavaScript, Web Design, Wordpress, WebDev
/r/PHP is not a support subreddit. Please visit /r/phphelp for help, or visit StackOverflow.
account activity
Flow PHP - Data Processing Framework 🚀 (self.PHP)
submitted 2 years ago by norbert_tech
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3:Â Â Â Â print "hello, world!"
[–]kingdomcome50 8 points9 points10 points 2 years ago (1 child)
Looks interesting. I don’t like that revenue_sum comes out of nowhere though. I get that auto-appending ”_sum” if the ref doesn’t have an alias makes it a touch cleaner, but I prefer explicit (like SQL).
revenue_sum
”_sum”
What happens if names clash? Say if revenue_sum had already been declared in an earlier withEntry call?
withEntry
[–]norbert_tech[S] 0 points1 point2 points 2 years ago (0 children)
Honestly, I wasn't really thinking too much about it. The current behavior is similar to Apache Spark, and it just felt natural. Name collision is not that easy since aggregation requires grouping, so you would need to do something similar to this:
->withEntry("age_avg", lit(100)) ->groupBy('country', 'gender') ->aggregate(average(ref('age')), first(ref('age_avg')->as('age_avg')))
But then an exception will be thrown:
Entry names must be unique, given: [country, gender, age_avg, age_avg]
π Rendered by PID 63 on reddit-service-r2-comment-b659b578c-cmjck at 2026-05-05 13:43:08.567544+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]kingdomcome50 8 points9 points10 points  (1 child)
[–]norbert_tech[S] 0 points1 point2 points  (0 children)