Copilot commented on code in PR #43199:
URL: https://github.com/apache/superset/pull/43199#discussion_r3797578657
##########
superset-frontend/src/components/Datasource/components/DatasourceEditor/DatasourceEditor.tsx:
##########
@@ -2417,6 +2417,16 @@ function DatasourceEditor({
filterTerm={columnSearchTerm}
filterFields={['column_name']}
onColumnsChange={cols => setColumns({ databaseColumns: cols })}
+ columnLabelTooltips={{
+ is_dttm: t(
+ 'Marks the column as a time column, so it can drive the ' +
+ 'time range filter and time grain. A column whose database
' +
+ 'type is not already a date or timestamp also needs a ' +
+ 'Datetime format below, otherwise a time grain builds SQL
' +
+ 'such as DATE_TRUNC() directly against the raw column and
' +
+ 'the query fails.',
+ ),
Review Comment:
The tooltip copy states that the query "fails" when a non-date/timestamp
column is marked temporal without a Datetime format. Per the PR description,
some engines implicitly cast strings so this isn’t universally true. Consider
softening the wording (e.g. “on some engines, such as PostgreSQL, this results
in a query error”) to avoid misleading users.
--
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]