forked from apache/incubator-gluten
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request apache#10 from intel-innersource/build-test
CI fixes
- Loading branch information
Showing
17 changed files
with
220 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -81,4 +81,3 @@ After Gazelle-Jni being successfully deployed in your environment, if you would | |
# Contact | ||
|
||
[email protected]; [email protected] | ||
xxx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin" | ||
http_proxy=http://proxy.iil.intel.com:911 | ||
https_proxy=http://proxy.iil.intel.com:912 | ||
no_proxy=intel.com,.intel.com,localhost |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ focal main | ||
deb http://apt.llvm.org/focal/ llvm-toolchain-focal-12 main | ||
deb https://download.neuroblade.ai/debian/ focal main | ||
deb https://download.neuroblade.ai/debian/ focal 1.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/bin/bash | ||
mydir=$(realpath $(dirname $0)) | ||
|
||
docker build -t dbio-runner-vm1.iil.intel.com:5000/gazelle-jni-ci-image:latest $mydir/build_docker | ||
docker push dbio-runner-vm1.iil.intel.com:5000/gazelle-jni-ci-image:latest | ||
docker build -t dbio-dev-build1.iil.intel.com:5000/gazelle-jni-ci-image:latest $mydir/build_docker | ||
docker push dbio-dev-build1.iil.intel.com:5000/gazelle-jni-ci-image:latest | ||
|
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
se : { | ||
host : localhost, | ||
port : 50052 | ||
}, | ||
|
||
planner : { | ||
host : localhost, | ||
port : 6568 | ||
}, | ||
|
||
master : { | ||
host : localhost, | ||
port : 6568 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
cmake_minimum_required(VERSION 3.12.4) | ||
|
||
project(xiphos-tools) | ||
|
||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON) | ||
|
||
add_subdirectory(table_info) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
all: | ||
mkdir -p build && cd build && cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo && cd .. | ||
$(MAKE) -C build $@ | ||
|
||
%: | ||
$(MAKE) -C build $@ |
24 changes: 24 additions & 0 deletions
24
xiphos-spark-integration/xiphos-tools/table_info/CMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
cmake_minimum_required(VERSION 3.12.4) | ||
|
||
project( | ||
neuroblade-daxl-samples | ||
VERSION 0.0.1 | ||
DESCRIPTION "neuroblade daxl samples") | ||
|
||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON) | ||
|
||
# language - defaults | ||
set(CXX /usr/lib/clang++-12) | ||
set(CMAKE_CXX_STANDARD 20) | ||
set(CMAKE_CXX_STANDARD_REQUIRED ON) | ||
set(CMAKE_CXX_EXTENSIONS OFF) | ||
|
||
set(ARROW_LIBRARIES arrow arrow_flight) | ||
|
||
include_directories(/usr/neuroblade/nb-daxl/include | ||
/usr/neuroblade/nb-arrow/include) | ||
link_directories(/usr/neuroblade/nb-arrow/lib | ||
/usr/neuroblade/nb-daxl/lib) | ||
|
||
add_executable(table_info table_info.cpp) | ||
target_link_libraries(table_info neuroblade-daxl ${ARROW_LIBRARIES}) |
73 changes: 73 additions & 0 deletions
73
xiphos-spark-integration/xiphos-tools/table_info/table_info.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
#include <daxl/SubTree.h> | ||
#include <arrow/record_batch.h> | ||
#include <daxl/DiskTable.h> | ||
#include <daxl/TableWriter.h> | ||
#include <iostream> | ||
#include <daxl/Daxl.h> | ||
#include <daxl/Pipeline.h> | ||
#include <daxl/SubTree.h> | ||
#include <daxl/SubTreeExecutor.h> | ||
#include <daxl/TableManager.h> | ||
#include <daxl/Session.h> | ||
#include <arrow/api.h> | ||
#include <arrow/record_batch.h> | ||
#include <string> | ||
#include <memory> | ||
#include <vector> | ||
|
||
using namespace std; | ||
|
||
void printTableInfo(const string & tableName) | ||
{ | ||
daxl::dataIO::TableManager *tableManger = daxl::dataIO::TableManager::getInstance(); | ||
daxl::DiskTable diskTable(tableName); | ||
|
||
daxl::Status status = tableManger->findTable(tableName, &diskTable); | ||
if (status.isOk()) { | ||
cout << "OK\n"; | ||
} else { | ||
cout << "findTable " << tableName << " failed with << " << status.getErrorMessage() << endl; | ||
} | ||
|
||
auto columns = diskTable.getColumns(); | ||
for (auto const & c : columns) { | ||
cout << "name: " << c.getName() << " type: " << *c.getType() << " scale: " << c.getScale() << " prec: " << c.getPrecision() << endl; | ||
} | ||
} | ||
|
||
void printTablesInfo() | ||
{ | ||
vector<daxl::DiskTable> tables; | ||
daxl::dataIO::TableManager * mgr = daxl::dataIO::TableManager::getInstance(); | ||
|
||
if (!mgr->getAllTables(&tables).isOk()) { | ||
cerr << "Failed to get all tables\n"; | ||
return; | ||
} | ||
|
||
cout << "Got " << tables.size() << " tables\n"; | ||
|
||
for (auto const & t : tables) { | ||
cout << t.getName() << ":\n"; | ||
printTableInfo(t.getName()); | ||
} | ||
|
||
} | ||
|
||
int main(int argc, char *argv[]) | ||
{ | ||
if (argc < 2) { | ||
cout << "Usage: " << argv[0] << " <config-file> [table name]" << endl; | ||
exit(1); | ||
} | ||
|
||
daxl::Daxl::getInstance()->init(string(argv[1]), daxl::Role::MASTER); | ||
|
||
if (argc < 3) { | ||
printTablesInfo(); | ||
} else { | ||
printTableInfo(argv[2]); | ||
} | ||
|
||
return 0; | ||
} |