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
d0470409
Unverified
Commit
d0470409
authored
Feb 08, 2020
by
Ryan McKinley
Committed by
GitHub
Feb 08, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Chore: export arrow dataframe utilities (#22016)
* export arrow dataframe * use the same table
parent
f4816963
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
packages/grafana-data/src/dataframe/ArrowDataFrame.ts
+7
-1
packages/grafana-data/src/dataframe/index.ts
+1
-3
No files found.
packages/grafana-data/src/dataframe/ArrowDataFrame.ts
View file @
d0470409
...
@@ -112,7 +112,13 @@ function toArrowVector(field: Field): ArrowVector {
...
@@ -112,7 +112,13 @@ function toArrowVector(field: Field): ArrowVector {
}
}
export
function
grafanaDataFrameToArrowTable
(
data
:
DataFrame
):
Table
{
export
function
grafanaDataFrameToArrowTable
(
data
:
DataFrame
):
Table
{
const
table
=
Table
.
new
(
// Return the original table
let
table
=
(
data
as
any
).
table
;
if
(
table
instanceof
Table
)
{
return
table
as
Table
;
}
table
=
Table
.
new
(
data
.
fields
.
map
(
field
=>
{
data
.
fields
.
map
(
field
=>
{
const
column
=
Column
.
new
(
field
.
name
,
toArrowVector
(
field
));
const
column
=
Column
.
new
(
field
.
name
,
toArrowVector
(
field
));
if
(
field
.
labels
)
{
if
(
field
.
labels
)
{
...
...
packages/grafana-data/src/dataframe/index.ts
View file @
d0470409
...
@@ -4,6 +4,4 @@ export * from './CircularDataFrame';
...
@@ -4,6 +4,4 @@ export * from './CircularDataFrame';
export
*
from
'./MutableDataFrame'
;
export
*
from
'./MutableDataFrame'
;
export
*
from
'./processDataFrame'
;
export
*
from
'./processDataFrame'
;
export
*
from
'./dimensions'
;
export
*
from
'./dimensions'
;
export
*
from
'./ArrowDataFrame'
;
// Phantom JS :(
//export * from './ArrowDataFrame';
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