Comments (1)
Ok so I think I know what the confusion is.
$ plyql -h dm -q "SELECT TIME_FLOOR(TIMESTAMP '2016-09-11 12:34.56', 'P1D') as A" --output json
[
{
"A": {
"type": "TIME",
"value": "2016-09-11T00:00:00.000Z"
}
}
]
$ plyql -h dm -q "SELECT TIME_FLOOR(TIMESTAMP '2016-09-11 12:34.56', 'P1D') as A" --timezone America/Los_Angeles --output json
[
{
"A": {
"type": "TIME",
"value": "2016-09-11T07:00:00.000Z"
}
}
]
$ plyql -h dm -q "SELECT TIME_FLOOR(TIMESTAMP '2016-09-11 12:34.56', 'P1D') as A" --timezone Asia/Shanghai --output json
[
{
"A": {
"type": "TIME",
"value": "2016-09-10T16:00:00.000Z"
}
}
]
$ plyql -h dm -q "SELECT TIME_FLOOR(TIMESTAMP '2016-09-11 12:34.56', 'P1D', 'Asia/Shanghai') as A" --output json
[
{
"A": {
"type": "TIME",
"value": "2016-09-10T16:00:00.000Z"
}
}
]
the --timezone
parameter is simply there to control the default timezone argument to the time manipulating functions TIME_FLOOR
, TIME_BUCKET
, TIME_SHIFT
, etc
It is (as intended) there to control the timezone of the time manipulation NOT of the time display.
As such select max(__time) from test_table;
is not in anyway way affected by the --timezone
parameter as it stands. Since it does not use any of the time manipulator functions.
output mode json and mysql gateway always output time in UTC. output mode table (the default) out puts the time in your local timezone regardless of --timezone
also (because reasons).
Anyhow @gianm has convinced me that this behavior should be changed to have --timezone
affect the display also.
Hence: #69
from plyql.
Related Issues (20)
- Plyql gateway shutting down due to memory issues HOT 1
- Could not resolve datasource HOT 1
- Plyql : Between clause not inclusive unlike Mysql HOT 1
- Having and Orderby with Alias not working in Plyql HOT 1
- not able to make connection using java code HOT 2
- Issues with Sisense BI Tools HOT 1
- Change `--timezone` parameter to affect timezone display also HOT 1
- Still Issue with SiSense BI Tools HOT 5
- error when trying to change heap size (plyql 0.10.7) HOT 1
- is CASE WHEN supported? HOT 1
- Case sensitivity during fetch tables via table_schema select HOT 1
- plyql mysql gateway will hang a request with not existed table HOT 1
- Newly added druid dimensions are not queryable through plyQL server HOT 1
- GroupBy queries stopped working on Druid 0.10.1 HOT 3
- Error: Connection lost: The server closed the connection HOT 2
- Latest row in druid's streaming datasource HOT 3
- (a*b) product of two fields -> (1337, 'Something broke')
- plyql mysql gateway throw an error when I used measure as filter HOT 2
- Add support for hllsketch aggregates HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plyql.