Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix-docs/en/tutorial.md_4.-Create-a-Dictionary/7.-'dropoff'-to-'pickup' #2373

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rcrestey
Copy link

@rcrestey rcrestey commented Jun 5, 2024

Hello !

SELECT
    count(1) AS total,
    dictGetOrDefault('taxi_zone_dictionary','Borough', toUInt64(pickup_nyct2010_gid), 'Unknown') AS borough_name
FROM trips
WHERE dropoff_nyct2010_gid = 132 OR dropoff_nyct2010_gid = 138
GROUP BY borough_name
ORDER BY total DESC

From this query, in the docs/en/tutorial.md file, at "4. Create a Dictionary" step 7, the current docs state The result looks like the following, and notice there are quite a few trips where the *dropoff* neighborhood is unknown instead of, I think, The result looks like the following, and notice there are quite a few trips where the *pickup* neighborhood is unknown,

As we already know the dropoff which are either dropoff_nyct2010_gid = 132 or dropoff_nyct2010_gid = 138 and we're looking at the pickup locations for these two dropoff with dictGetOrDefault('taxi_zone_dictionary','Borough', toUInt64(pickup_nyct2010_gid), 'Unknown') which set to 'Unknown' the pickup Borough if the given pickup id pickup_nyct2010_gid isn't found in the dictionary.

```
SELECT
    count(1) AS total,
    dictGetOrDefault('taxi_zone_dictionary','Borough', toUInt64(pickup_nyct2010_gid), 'Unknown') AS borough_name
FROM trips
WHERE dropoff_nyct2010_gid = 132 OR dropoff_nyct2010_gid = 138
GROUP BY borough_name
ORDER BY total DESC
```
```dictGetOrDefault('taxi_zone_dictionary','Borough', toUInt64(pickup_nyct2010_gid), 'Unknown')``` get the borough of the 'pickup_nyct2010_gid' so this is supposed to show 'Unknown' when 'pickup_nyct2010_gid' is unknown, meaning when the "pickup" Borough is 'Unknown' and not the "dropoff" is  'Unknown', as we know and precisely select the "dropoff" in this query to be JFK or LaGuardia,

But the current documentation state ```The result looks like the following, and notice there are quite a few trips where the *dropoff* neighborhood is unknown``` instead ```The result looks like the following, and notice there are quite a few trips where the *pickup* neighborhood is unknown```.
@CLAassistant
Copy link

CLAassistant commented Jun 5, 2024

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants