Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
ae7328fb
Unverified
Commit
ae7328fb
authored
Nov 25, 2020
by
Ryan McKinley
Committed by
GitHub
Nov 25, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Arrow: cast timestams to Number (#29402)
parent
12a07aff
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
packages/grafana-data/src/dataframe/ArrowDataFrame.ts
+1
-0
public/app/plugins/panel/graph/data_processor.ts
+1
-2
No files found.
packages/grafana-data/src/dataframe/ArrowDataFrame.ts
View file @
ae7328fb
...
...
@@ -68,6 +68,7 @@ export function arrowTableToDataFrame(table: Table): ArrowDataFrame {
}
case
ArrowType
.
Timestamp
:
{
type
=
FieldType
.
time
;
values
=
new
NumberColumn
(
col
);
// Cast to number
break
;
}
case
ArrowType
.
Utf8
:
{
...
...
public/app/plugins/panel/graph/data_processor.ts
View file @
ae7328fb
...
...
@@ -6,7 +6,6 @@ import {
Field
,
DataFrame
,
getTimeField
,
dateTime
,
getFieldDisplayName
,
getColorForTheme
,
}
from
'@grafana/data'
;
...
...
@@ -47,7 +46,7 @@ export class DataProcessor {
const
datapoints
=
[];
for
(
let
r
=
0
;
r
<
series
.
length
;
r
++
)
{
datapoints
.
push
([
field
.
values
.
get
(
r
),
dateTime
(
timeField
.
values
.
get
(
r
)).
valueOf
(
)]);
datapoints
.
push
([
field
.
values
.
get
(
r
),
timeField
.
values
.
get
(
r
)]);
}
list
.
push
(
this
.
toTimeSeries
(
field
,
name
,
i
,
j
,
datapoints
,
list
.
length
,
range
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment