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

Unable to view created_at and updated_at field values #10285

Closed
ramandamodar12 opened this issue Jul 2, 2019 · 14 comments
Closed

Unable to view created_at and updated_at field values #10285

ramandamodar12 opened this issue Jul 2, 2019 · 14 comments
Labels
Database/MySQL Priority:P2 Average run of the mill bug Type:Bug Product defects .Unable to Reproduce

Comments

@ramandamodar12
Copy link

ramandamodar12 commented Jul 2, 2019

Screenshot 2019-07-02 at 6 10 01 PM

Metabase Version - 0.33

Unable to view the raw values of created_at and updated_at fields of any table in my MySQL database.

@ramandamodar12 ramandamodar12 added the Type:Bug Product defects label Jul 2, 2019
@ramandamodar12 ramandamodar12 changed the title Unable to view created_at and updted Unable to view created_at and updated_at Jul 2, 2019
@ramandamodar12 ramandamodar12 changed the title Unable to view created_at and updated_at Unable to view created_at and updated_at field values Jul 2, 2019
@flamber
Copy link
Contributor

flamber commented Jul 2, 2019

Hi @ramandamodar12
The screenshot is not Metabase 0.33 (not even released yet) - latest is 0.32.9 - so what are you using?
Have you defined formatting, otherwise try setting it again? Admin > Settings > Formatting
What is the default language of your browser?

@ramandamodar12
Copy link
Author

Hi @ramandamodar12
The screenshot is not Metabase 0.33 (not even released yet) - latest is 0.32.9 - so what are you using?
Have you defined formatting, otherwise try setting it again? Admin > Settings > Formatting
What is the default language of your browser?

Screenshot 2019-07-02 at 8 36 03 PM

The settings page shows the version as 0.33.0-snapshot.

Screenshot 2019-07-02 at 8 37 46 PM

Sharing the screenshot of the global level format settings.

The default language is set to EN

@flamber
Copy link
Contributor

flamber commented Jul 2, 2019

@ramandamodar12
Okay, that doesn't show which branch+commit you're using. Are you reporting an issue with master?
Why are you not using one of the pre-built releases? https://metabase.com/start/

@ramandamodar12
Copy link
Author

@flamber I had followed the steps shown at https://metabase.com/docs/latest/operations-guide/running-metabase-on-elastic-beanstalk.html#deploying-new-versions-of-metabase to update metabase. This file was downloaded https://downloads.metabase.com/v0.32.9/metabase-aws-eb.zip and was updated in the AWS console. Not sure why the settings page shows 0.33.

@flamber
Copy link
Contributor

flamber commented Jul 2, 2019

@ramandamodar12
Okay, something must have gone wrong somewhere. Can you verify that the file Dockerrun.aws.json inside metabase-aws-eb.zip is using the image metabase/metabase:v0.32.9?
Also, click the gear-icon ⚙️ in top right corner and click "About Metabase", which should tell you version and commit version and built date.

@amis47
Copy link

amis47 commented Jul 4, 2019

we just updated to 0.32.8 as well and it ran into the same problem

fwiw
image

@flamber
Copy link
Contributor

flamber commented Jul 4, 2019

@amis47
Which version did you upgrade from?
Are you using MySQL too? Which version?
Is this only a problem with Native (SQL) or does it also happens with Custom question?
Does it work if you change the field formatting in visualization settings ⚙️?

@amis47
Copy link

amis47 commented Jul 4, 2019

thanks for your quick response, we upgraded metabase from 0.31.2 to 0.32.8. All SQL statement seems to work fine, the only problem is we are unable to see datetime field such as created_at / updated_at field values.

@flamber
Copy link
Contributor

flamber commented Aug 14, 2019

@amis47
Does the created_at/updated_at use microseconds? Where column type is like datetime(6)
Which version of MySQL?
Reference: https://discourse.metabase.com/t/datetime-values-not-rendering-in-results-table/6869

@ramandamodar12
Copy link
Author

@amis47
Does the created_at/updated_at use microseconds? Where column type is like datetime(6)
Which version of MySQL?
Reference: https://discourse.metabase.com/t/datetime-values-not-rendering-in-results-table/6869

Yes @flamber The fields use microseconds. As a workaround, we are using DATE_FORMAT function.

@salsakran
Copy link
Contributor

Closing as this was fixed in 0.33 based on that discourse conversation.

If it reappears chime in here and we'll reopen

@dannymc129
Copy link

Hate to do this @salsakran but I just upgraded today from 0.31.2 to 0.33.3 and this issue popped up. It's a very interesting one, I noticed that a datetime that specifically have microseconds of 000 does return from the /datasets but all others don't. I guess 1/1000 ain't bad right?

image

image

I reverted all the way back to 0.33.0-rc1 and this still occurs.

@mazameli mazameli reopened this Oct 7, 2019
@salsakran salsakran added Database/MySQL Priority:P2 Average run of the mill bug labels Oct 7, 2019
@flamber
Copy link
Contributor

flamber commented Nov 26, 2019

@dannymc129
Are you still seeing this problem on 0.33.6? Is it specific to Custom or Native question?
I cannot reproduce this problem with MySQL 5.7.28 column type datetime(6) (0.32.9 thru 0.33.6)
image

@flamber
Copy link
Contributor

flamber commented Mar 18, 2020

Is anyone able to reproduce this problem on the latest release 0.34.3 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Database/MySQL Priority:P2 Average run of the mill bug Type:Bug Product defects .Unable to Reproduce
Projects
None yet
Development

No branches or pull requests

6 participants