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

Use an expression for time column (e.g., for time stored in JSON blob) #16

Closed
dreamtheater0 opened this issue Apr 8, 2017 · 4 comments

Comments

@dreamtheater0
Copy link

Is it possible to modify timescaledb to use an expression for the time column?

@RobAtticus
Copy link
Member

RobAtticus commented Apr 8, 2017

Can you clarify what you mean by using an expression?

@dreamtheater0
Copy link
Author

I mean that when make a hypertable one can use a Postgres' expression like the following:

SELECT create_hypertable('(conditions', 'json_attr->'time')::int8');

If the time values are stored in a json type column, we need this.

@RobAtticus
Copy link
Member

RobAtticus commented Apr 9, 2017

Currently you cannot. Time must be stored as a column either using an int datatype or a timestamp datatype.

Further, not sure where support for that would fit on our roadmap, but we will keep it in mind!

@mfreed mfreed changed the title Use an expression for time column Use an expression for time column (e.g., for time stored in JSON blob) Jul 16, 2017
@mfreed
Copy link
Member

mfreed commented Dec 24, 2018

Hi @kskim80 I believe this has been addressed with with #639 -- in that it allows you to define your own time functions -- which was part of our 1.1 release.

Closing this issue for now, feel free to re-open if doesn't solve your problems.

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

No branches or pull requests

3 participants