bito-code-review[bot] commented on code in PR #37316:
URL: https://github.com/apache/superset/pull/37316#discussion_r2714496293


##########
docs/docs/configuration/timezones.mdx:
##########
@@ -20,7 +20,7 @@ To help make the problem somewhat tractable—given that Apache 
Superset has no
 
 To strive for data consistency (regardless of the timezone of the client) the 
Apache Superset backend tries to ensure that any timestamp sent to the client 
has an explicit (or semi-explicit as in the case with [Epoch 
time](https://en.wikipedia.org/wiki/Unix_time) which is always in reference to 
UTC) timezone encoded within.
 
-The challenge however lies with the slew of [database 
engines](/docs/configuration/databases#installing-drivers-in-docker-images) 
which Apache Superset supports and various inconsistencies between their 
[Python Database API (DB-API)](https://www.python.org/dev/peps/pep-0249/) 
implementations combined with the fact that we use 
[Pandas](https://pandas.pydata.org/) to read SQL into a DataFrame prior to 
serializing to JSON. Regrettably Pandas ignores the DB-API 
[type_code](https://www.python.org/dev/peps/pep-0249/#type-objects) relying by 
default on the underlying Python type returned by the DB-API. Currently only a 
subset of the supported database engines work correctly with Pandas, i.e., 
ensuring timestamps without an explicit timestamp are serializd to JSON with 
the server timezone, thus guaranteeing the client will display timestamps in a 
consistent manner irrespective of the client's timezone.
+The challenge however lies with the slew of [database 
engines](/docs/databases#installing-drivers-in-docker) which Apache Superset 
supports and various inconsistencies between their [Python Database API 
(DB-API)](https://www.python.org/dev/peps/pep-0249/) implementations combined 
with the fact that we use [Pandas](https://pandas.pydata.org/) to read SQL into 
a DataFrame prior to serializing to JSON. Regrettably Pandas ignores the DB-API 
[type_code](https://www.python.org/dev/peps/pep-0249/#type-objects) relying by 
default on the underlying Python type returned by the DB-API. Currently only a 
subset of the supported database engines work correctly with Pandas, i.e., 
ensuring timestamps without an explicit timestamp are serializd to JSON with 
the server timezone, thus guaranteeing the client will display timestamps in a 
consistent manner irrespective of the client's timezone.

Review Comment:
   <div>
   
   
   <div id="suggestion">
   <div id="issue"><b>Broken documentation link</b></div>
   <div id="fix">
   
   The link to [database engines](/docs/databases#installing-drivers-in-docker) 
points to a non-existent page, as no databases.mdx file exists in docs/docs/. 
The sidebar references a 'Databases' category with autogenerated content from a 
'databases' directory that is missing.
   </div>
   
   
   </div>
   
   
   
   
   <small><i>Code Review Run #ebd211</i></small>
   </div>
   
   ---
   Should Bito avoid suggestions like this for future reviews? (<a 
href=https://alpha.bito.ai/home/ai-agents/review-rules>Manage Rules</a>)
   - [ ] Yes, avoid them



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to