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

[feature-wip](multicatalog)support apche druid catalog #27270

Closed
wants to merge 27 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
9b425c3
support jdbc druid catalog
vinlee19 Sep 11, 2023
4362483
support jdbc druid catalog
vinlee19 Sep 11, 2023
95d987c
support complex data type
vinlee19 Sep 11, 2023
f5dd63f
support druid catalog
vinlee19 Sep 11, 2023
8d6efbd
add jdbc catalog druid pushdown
vinlee19 Sep 21, 2023
8a32d00
Merge branch 'apache:master' into jdbc_druid_catalog
vinlee19 Oct 8, 2023
bae334b
Merge branch 'apache:master' into jdbc_druid_catalog
vinlee19 Oct 20, 2023
8f786b7
Merge branch 'apache:master' into jdbc_druid_catalog
vinlee19 Oct 23, 2023
474bccf
improve code logic
vinlee19 Oct 23, 2023
0a84c3b
Merge remote-tracking branch 'origin/jdbc_druid_catalog' into jdbc_dr…
vinlee19 Oct 23, 2023
cf52f7e
Merge branch 'apache:master' into jdbc_druid_catalog
vinlee19 Oct 23, 2023
da812d0
Merge remote-tracking branch 'origin/jdbc_druid_catalog' into jdbc_dr…
vinlee19 Oct 23, 2023
a1252ad
Merge branch 'apache:master' into jdbc_druid_catalog
vinlee19 Oct 23, 2023
988e541
add apache druid docker-compose
vinlee19 Nov 6, 2023
160e885
Merge remote-tracking branch 'origin/jdbc_druid_catalog' into jdbc_dr…
vinlee19 Nov 6, 2023
11f546f
update druid scripts
vinlee19 Nov 6, 2023
9eb6679
update version
vinlee19 Nov 6, 2023
7b3d783
update druid_init.sh
vinlee19 Nov 6, 2023
d9d8096
update druid_init.sh
vinlee19 Nov 6, 2023
7828723
add druid port
vinlee19 Nov 6, 2023
6f54e69
add druid catalog test file
vinlee19 Nov 7, 2023
cabd57b
complete test case
vinlee19 Nov 7, 2023
20e0a80
improve code
vinlee19 Nov 7, 2023
5c01342
Merge branch 'master' into jdbc_druid_catalog
vinlee19 Nov 7, 2023
58e9c8e
reformat be code
vinlee19 Nov 20, 2023
4ec01fe
Merge remote-tracking branch 'origin/jdbc_druid_catalog' into jdbc_dr…
vinlee19 Nov 20, 2023
842f00e
Merge branch 'apache:master' into jdbc_druid_catalog
vinlee19 Nov 20, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion be/src/vec/exec/vjdbc_connector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,8 @@ Status JdbcConnector::_check_type(SlotDescriptor* slot_desc, const std::string&
break;
}
case TYPE_JSONB: {
if (type_str != "java.lang.String" && type_str != "org.postgresql.util.PGobject") {
if (type_str != "java.lang.String" && type_str != "org.postgresql.util.PGobject" &&
type_str != "java.lang.Object") {
return Status::InternalError(error_msg);
}

Expand Down
53 changes: 53 additions & 0 deletions docker/thirdparties/docker-compose/druid/druid.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#

# Java tuning
#DRUID_XMX=1g
#DRUID_XMS=1g
#DRUID_MAXNEWSIZE=250m
#DRUID_NEWSIZE=250m
#DRUID_MAXDIRECTMEMORYSIZE=6172m
DRUID_SINGLE_NODE_CONF=nano-quickstart

druid_emitter_logging_logLevel=debug

druid_extensions_loadList=["druid-histogram", "druid-datasketches", "druid-lookups-cached-global", "postgresql-metadata-storage", "druid-multi-stage-query"]

druid_zk_service_host=zookeeper-druid

druid_metadata_storage_host=postgres-druid
druid_metadata_storage_type=postgresql
druid_metadata_storage_connector_connectURI=jdbc:postgresql://postgres-druid:5432/druid
druid_metadata_storage_connector_user=druid
druid_metadata_storage_connector_password=FoolishPassword

druid_coordinator_balancer_strategy=cachingCost

druid_indexer_runner_javaOptsArray=["-server", "-Xmx1g", "-Xms1g", "-XX:MaxDirectMemorySize=3g", "-Duser.timezone=UTC", "-Dfile.encoding=UTF-8", "-Djava.util.logging.manager=org.apache.logging.log4j.jul.LogManager"]
druid_indexer_fork_property_druid_processing_buffer_sizeBytes=256MiB

druid_storage_type=local
druid_storage_storageDirectory=/opt/shared/segments
druid_indexer_logs_type=file
druid_indexer_logs_directory=/opt/shared/indexing-logs

druid_processing_numThreads=4
druid_processing_numMergeBuffers=2

DRUID_LOG4J=<?xml version="1.0" encoding="UTF-8" ?><Configuration status="WARN"><Appenders><Console name="Console" target="SYSTEM_OUT"><PatternLayout pattern="%d{ISO8601} %p [%t] %c - %m%n"/></Console></Appenders><Loggers><Root level="info"><AppenderRef ref="Console"/></Root><Logger name="org.apache.druid.jetty.RequestLog" additivity="false" level="DEBUG"><AppenderRef ref="Console"/></Logger></Loggers></Configuration>
203 changes: 203 additions & 0 deletions docker/thirdparties/docker-compose/druid/druid.yaml.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,203 @@
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#
version: "3.9"

volumes:
metadata_data: {}
middle_var: {}
historical_var: {}
broker_var: {}
coordinator_var: {}
router_var: {}
druid_shared: {}
zookeeper_data: {}

services:
postgres-druid:
image: postgres:14
container_name: postgres-druid
ports:
- "11432:5432"
volumes:
- ./data/druid_pg_data:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=FoolishPassword
- POSTGRES_USER=druid
- POSTGRES_DB=druid
# networks:
# - doris--druid
healthcheck:
test: ["CMD", "pg_isready", "-U", "druid"]
interval: 10s
timeout: 5s
retries: 3

# Need 3.5 or later for container nodes
zookeeper-druid:
image: zookeeper:3.7.0
container_name: zookeeper-druid
volumes:
- ./data/druid_zk_data:/data
ports:
- "12181:2181"
environment:
- ZOO_MY_ID=1
# networks:
# - doris--druid
healthcheck:
test: nc -z localhost 2181 || exit -1
start_period: 15s
interval: 30s
timeout: 10s
retries: 3

coordinator-druid:
image: apache/druid:27.0.0
container_name: coordinator-druid
volumes:
- ./data/druid_shared:/opt/shared
- ./data/druid_coordinator_var:/opt/druid/var
depends_on:
- zookeeper-druid
- postgres-druid
ports:
- "11881:8081"
# networks:
# - doris--druid
healthcheck:
test: nc -z localhost 8081 || exit -1
interval: 30s
timeout: 10s
retries: 3
command:
- coordinator
env_file:
- druid.env

broker-druid:
image: apache/druid:27.0.0
container_name: broker-druid
volumes:
- ./data/druid_broker_var:/opt/druid/var
depends_on:
- zookeeper-druid
- postgres-druid
- coordinator-druid
# networks:
# - doris--druid
ports:
- "11882:8082"
healthcheck:
test: nc -z localhost 8082 || exit -1
interval: 30s
timeout: 10s
retries: 3
command:
- broker
env_file:
- druid.env

historical-druid:
image: apache/druid:27.0.0
container_name: historical-druid
volumes:
- ./data/druid_shared:/opt/shared
- ./data/druid_historical_var:/opt/druid/var
depends_on:
- zookeeper-druid
- postgres-druid
- coordinator-druid
ports:
- "11883:8083"
# networks:
# - doris--druid
healthcheck:
test: nc -z localhost 8083 || exit -1
interval: 30s
timeout: 10s
retries: 3
command:
- historical
env_file:
- druid.env

middlemanager-druid:
image: apache/druid:27.0.0
container_name: middlemanager-druid
volumes:
- ./data/druid_shared:/opt/shared
- ./data/druid_middle_var:/opt/druid/var
depends_on:
- zookeeper-druid
- postgres-druid
- coordinator-druid
ports:
- "11891:8091"
- "21100-21105:8100-8105"
# networks:
# - doris--druid
healthcheck:
test: nc -z localhost 8091 || exit -1
interval: 30s
timeout: 10s
retries: 3
command:
- middleManager
env_file:
- druid.env

router-druid:
image: apache/druid:27.0.0
container_name: router-druid
volumes:
- ./data/druid_router_var:/opt/druid/var
depends_on:
- zookeeper-druid
- postgres-druid
- coordinator-druid
# networks:
# - doris--druid
ports:
- "21888:8888"
healthcheck:
test: nc -z localhost 8888 || exit -1
interval: 30s
timeout: 10s
retries: 3
command:
- router
env_file:
- druid.env

toolbox-druid:
image: webdevops/toolbox
container_name: toolbox-druid
volumes:
- ./scripts:/mnt/scripts
environment:
DRUID_COORDINATOR_HOST: "coordinator-druid"
command: [ "sh","-c","/mnt/scripts/druid_init.sh" ]
depends_on:
- postgres-druid
- zookeeper-druid
- middlemanager-druid
- broker-druid
- historical-druid
- router-druid
- coordinator-druid
74 changes: 74 additions & 0 deletions docker/thirdparties/docker-compose/druid/scripts/data/kttm.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
{
"type": "index_parallel",
"spec": {
"ioConfig": {
"type": "index_parallel",
"inputSource": {
"type": "inline",
"data": "{\"session\":\"S56194838\",\"number\":\"16\",\"event\":\"{\\\"type\\\":\\\"PercentClear\\\",\\\"percentage\\\":55}\",\"agent\":\"{\\\"type\\\":\\\"Browser\\\",\\\"category\\\":\\\"Personal computer\\\",\\\"browser\\\":\\\"Chrome\\\",\\\"browser_version\\\":\\\"76.0.3809.100\\\",\\\"os\\\":\\\"Windows 7\\\",\\\"platform\\\":\\\"Windows\\\"}\",\"client_ip\":\"181.13.41.82\",\"geo_ip\":\"{\\\"continent\\\":\\\"South America\\\",\\\"country\\\":\\\"Argentina\\\",\\\"region\\\":\\\"Santa Fe\\\",\\\"city\\\":\\\"Rosario\\\"}\",\"language\":\"[\\\"es\\\",\\\"es-419\\\"]\",\"adblock_list\":\"NoAdblock\",\"app_version\":\"1.9.6\",\"path\":\"http://www.koalastothemax.com/\",\"loaded_image\":\"http://www.koalastothemax.com/img/koalas2.jpg\",\"referrer\":\"Direct\",\"referrer_host\":\"Direct\",\"server_ip\":\"172.31.57.89\",\"screen\":\"1680x1050\",\"window\":\"1680x939\",\"session_length\":76261,\"timezone\":\"N/A\",\"timezone_offset\":\"180\"}\n{\"session\":\"S46093731\",\"number\":\"24\",\"event\":\"{\\\"type\\\":\\\"PercentClear\\\",\\\"percentage\\\":85}\",\"agent\":\"{\\\"type\\\":\\\"Mobile Browser\\\",\\\"category\\\":\\\"Smartphone\\\",\\\"browser\\\":\\\"Chrome Mobile\\\",\\\"browser_version\\\":\\\"50.0.2661.89\\\",\\\"os\\\":\\\"Android\\\",\\\"platform\\\":\\\"Android\\\"}\",\"client_ip\":\"177.242.100.0\",\"geo_ip\":\"{\\\"continent\\\":\\\"North America\\\",\\\"country\\\":\\\"Mexico\\\",\\\"region\\\":\\\"Chihuahua\\\",\\\"city\\\":\\\"Nuevo Casas Grandes\\\"}\",\"language\":\"[\\\"en\\\",\\\"es\\\",\\\"es-419\\\",\\\"es-MX\\\"]\",\"adblock_list\":\"NoAdblock\",\"app_version\":\"1.9.6\",\"path\":\"https://koalastothemax.com/\",\"loaded_image\":\"https://koalastothemax.com/img/koalas1.jpg\",\"referrer\":\"https://www.google.com/\",\"referrer_host\":\"www.google.com\",\"server_ip\":\"172.31.11.5\",\"screen\":\"320x570\",\"window\":\"540x743\",\"session_length\":252689,\"timezone\":\"CDT\",\"timezone_offset\":\"300\"}\n{\"session\":\"S13352079\",\"number\":\"24\",\"event\":\"{\\\"type\\\":\\\"PercentClear\\\",\\\"percentage\\\":90}\",\"agent\":\"{\\\"type\\\":\\\"Browser\\\",\\\"category\\\":\\\"Personal computer\\\",\\\"browser\\\":\\\"Chrome\\\",\\\"browser_version\\\":\\\"76.0.3809.100\\\",\\\"os\\\":\\\"Windows 7\\\",\\\"platform\\\":\\\"Windows\\\"}\",\"client_ip\":\"181.46.136.44\",\"geo_ip\":\"{\\\"continent\\\":\\\"South America\\\",\\\"country\\\":\\\"Argentina\\\",\\\"region\\\":\\\"Buenos Aires\\\",\\\"city\\\":\\\"Luis Guillon\\\"}\",\"language\":\"[\\\"en\\\",\\\"es\\\",\\\"es-419\\\",\\\"es-US\\\"]\",\"adblock_list\":\"NoAdblock\",\"app_version\":\"1.9.6\",\"path\":\"http://www.koalastothemax.com/\",\"loaded_image\":\"http://www.koalastothemax.com/img/koalas.jpg\",\"referrer\":\"Direct\",\"referrer_host\":\"Direct\",\"server_ip\":\"172.31.11.5\",\"screen\":\"1366x768\",\"window\":\"1366x652\",\"session_length\":1753602,\"timezone\":\"N/A\",\"timezone_offset\":\"180\"}\n{\"session\":\"S28264557\",\"number\":\"15\",\"event\":\"{\\\"type\\\":\\\"PercentClear\\\",\\\"percentage\\\":55}\",\"agent\":\"{\\\"type\\\":\\\"Browser\\\",\\\"category\\\":\\\"Personal computer\\\",\\\"browser\\\":\\\"Opera\\\",\\\"browser_version\\\":\\\"62.0.3331.116\\\",\\\"os\\\":\\\"Windows\\\",\\\"platform\\\":\\\"Windows\\\"}\",\"client_ip\":\"71.82.190.9\",\"geo_ip\":\"{\\\"continent\\\":\\\"North America\\\",\\\"country\\\":\\\"United States\\\",\\\"region\\\":\\\"Michigan\\\",\\\"city\\\":\\\"Allegan\\\"}\",\"language\":\"[\\\"en\\\",\\\"en-US\\\"]\",\"adblock_list\":\"NoAdblock\",\"app_version\":\"1.9.6\",\"path\":\"http://koalastothemax.com/\",\"loaded_image\":\"http://koalastothemax.com/img/koalas3.jpg\",\"referrer\":\"Direct\",\"referrer_host\":\"Direct\",\"server_ip\":\"172.31.57.89\",\"screen\":\"1920x1080\",\"window\":\"1880x976\",\"session_length\":62093,\"timezone\":\"N/A\",\"timezone_offset\":\"240\"}\n{\"session\":\"S81338885\",\"number\":\"18\",\"event\":\"{\\\"type\\\":\\\"PercentClear\\\",\\\"percentage\\\":60}\",\"agent\":\"{\\\"type\\\":\\\"Mobile Browser\\\",\\\"category\\\":\\\"Smartphone\\\",\\\"browser\\\":\\\"Mobile Safari\\\",\\\"browser_version\\\":\\\"12.0\\\",\\\"os\\\":\\\"iOS\\\",\\\"platform\\\":\\\"iOS\\\"}\",\"client_ip\":\"100.0.162.244\",\"geo_ip\":\"{\\\"continent\\\":\\\"North America\\\",\\\"country\\\":\\\"United States\\\",\\\"region\\\":\\\"Rhode Island\\\",\\\"city\\\":\\\"Woonsocket\\\"}\",\"language\":\"en-us\",\"adblock_list\":\"NoAdblock\",\"app_version\":\"1.9.6\",\"path\":\"http://koalastothemax.com/\",\"loaded_image\":\"http://koalastothemax.com/img/koalas2.jpg\",\"referrer\":\"Direct\",\"referrer_host\":\"Direct\",\"server_ip\":\"172.31.11.5\",\"screen\":\"375x667\",\"window\":\"540x796\",\"session_length\":79764,\"timezone\":\"EDT\",\"timezone_offset\":\"240\"}\n{\"session\":\"S18516388\",\"number\":\"4\",\"event\":\"{\\\"type\\\":\\\"LayerClear\\\",\\\"layer\\\":4}\",\"agent\":\"{\\\"type\\\":\\\"Browser\\\",\\\"category\\\":\\\"Personal computer\\\",\\\"browser\\\":\\\"Chrome\\\",\\\"browser_version\\\":\\\"76.0.3809.100\\\",\\\"os\\\":\\\"Windows\\\",\\\"platform\\\":\\\"Windows\\\"}\",\"client_ip\":\"86.124.118.86\",\"geo_ip\":\"{\\\"continent\\\":\\\"Europe\\\",\\\"country\\\":\\\"Romania\\\",\\\"region\\\":\\\"Judetul Braila\\\",\\\"city\\\":\\\"Braila\\\"}\",\"language\":\"[\\\"en\\\",\\\"en-US\\\",\\\"ro\\\",\\\"ro-RO\\\"]\",\"adblock_list\":\"EasyList\",\"app_version\":\"1.9.6\",\"path\":\"https://koalastothemax.com/\",\"loaded_image\":\"https://koalastothemax.com/img/koalas2.jpg\",\"referrer\":\"https://www.google.com/\",\"referrer_host\":\"www.google.com\",\"server_ip\":\"172.31.57.89\",\"screen\":\"1366x768\",\"window\":\"1366x657\",\"session_length\":6264,\"timezone\":\"N/A\",\"timezone_offset\":\"-180\"}\n{\"session\":\"S93504612\",\"number\":\"1\",\"event\":\"{\\\"type\\\":\\\"LayerClear\\\",\\\"layer\\\":6}\",\"agent\":\"{\\\"type\\\":\\\"Browser\\\",\\\"category\\\":\\\"Personal computer\\\",\\\"browser\\\":\\\"Chrome\\\",\\\"browser_version\\\":\\\"76.0.3809.100\\\",\\\"os\\\":\\\"Windows\\\",\\\"platform\\\":\\\"Windows\\\"}\",\"client_ip\":\"68.82.4.9\",\"geo_ip\":\"{\\\"continent\\\":\\\"North America\\\",\\\"country\\\":\\\"United States\\\",\\\"region\\\":\\\"Pennsylvania\\\",\\\"city\\\":\\\"Philadelphia\\\"}\",\"language\":\"[\\\"en\\\",\\\"en-US\\\"]\",\"adblock_list\":\"EasyList\",\"app_version\":\"1.9.6\",\"path\":\"https://koalastothemax.com/\",\"loaded_image\":\"https://koalastothemax.com/img/koalas3.jpg\",\"referrer\":\"https://www.google.com/\",\"referrer_host\":\"www.google.com\",\"server_ip\":\"172.31.11.5\",\"screen\":\"1366x768\",\"window\":\"1366x657\",\"session_length\":8070,\"timezone\":\"N/A\",\"timezone_offset\":\"240\"}\n{\"session\":\"S93504612\",\"number\":\"2\",\"event\":\"{\\\"type\\\":\\\"PercentClear\\\",\\\"percentage\\\":0}\",\"agent\":\"{\\\"type\\\":\\\"Browser\\\",\\\"category\\\":\\\"Personal computer\\\",\\\"browser\\\":\\\"Chrome\\\",\\\"browser_version\\\":\\\"76.0.3809.100\\\",\\\"os\\\":\\\"Windows\\\",\\\"platform\\\":\\\"Windows\\\"}\",\"client_ip\":\"68.82.4.9\",\"geo_ip\":\"{\\\"continent\\\":\\\"North America\\\",\\\"country\\\":\\\"United States\\\",\\\"region\\\":\\\"Pennsylvania\\\",\\\"city\\\":\\\"Philadelphia\\\"}\",\"language\":\"[\\\"en\\\",\\\"en-US\\\"]\",\"adblock_list\":\"EasyList\",\"app_version\":\"1.9.6\",\"path\":\"https://koalastothemax.com/\",\"loaded_image\":\"https://koalastothemax.com/img/koalas3.jpg\",\"referrer\":\"https://www.google.com/\",\"referrer_host\":\"www.google.com\",\"server_ip\":\"172.31.11.5\",\"screen\":\"1366x768\",\"window\":\"1366x657\",\"session_length\":8078,\"timezone\":\"N/A\",\"timezone_offset\":\"240\"}\n{\"session\":\"S10902483\",\"number\":\"6\",\"event\":\"{\\\"type\\\":\\\"PercentClear\\\",\\\"percentage\\\":10}\",\"agent\":\"{\\\"type\\\":\\\"Mobile Browser\\\",\\\"category\\\":\\\"Smartphone\\\",\\\"browser\\\":\\\"Mobile Safari\\\",\\\"browser_version\\\":\\\"12.1.2\\\",\\\"os\\\":\\\"iOS\\\",\\\"platform\\\":\\\"iOS\\\"}\",\"client_ip\":\"72.93.52.73\",\"geo_ip\":\"{\\\"continent\\\":\\\"North America\\\",\\\"country\\\":\\\"United States\\\",\\\"region\\\":\\\"Massachusetts\\\",\\\"city\\\":\\\"Worcester\\\"}\",\"language\":\"en-us\",\"adblock_list\":\"NoAdblock\",\"app_version\":\"1.9.6\",\"path\":\"https://koalastothemax.com/\",\"loaded_image\":\"https://koalastothemax.com/img/koalas2.jpg\",\"referrer\":\"https://www.google.com/\",\"referrer_host\":\"www.google.com\",\"server_ip\":\"172.31.57.89\",\"screen\":\"414x736\",\"window\":\"540x811\",\"session_length\":49275,\"timezone\":\"EDT\",\"timezone_offset\":\"240\"}\n{\"session\":\"S81338885\",\"number\":\"19\",\"event\":\"{\\\"type\\\":\\\"PercentClear\\\",\\\"percentage\\\":65}\",\"agent\":\"{\\\"type\\\":\\\"Mobile Browser\\\",\\\"category\\\":\\\"Smartphone\\\",\\\"browser\\\":\\\"Mobile Safari\\\",\\\"browser_version\\\":\\\"12.0\\\",\\\"os\\\":\\\"iOS\\\",\\\"platform\\\":\\\"iOS\\\"}\",\"client_ip\":\"100.0.162.244\",\"geo_ip\":\"{\\\"continent\\\":\\\"North America\\\",\\\"country\\\":\\\"United States\\\",\\\"region\\\":\\\"Rhode Island\\\",\\\"city\\\":\\\"Woonsocket\\\"}\",\"language\":\"en-us\",\"adblock_list\":\"NoAdblock\",\"app_version\":\"1.9.6\",\"path\":\"http://koalastothemax.com/\",\"loaded_image\":\"http://koalastothemax.com/img/koalas2.jpg\",\"referrer\":\"Direct\",\"referrer_host\":\"Direct\",\"server_ip\":\"172.31.11.5\",\"screen\":\"375x667\",\"window\":\"540x796\",\"session_length\":82064,\"timezone\":\"EDT\",\"timezone_offset\":\"240\"}"
},
"inputFormat": {
"type": "json"
}
},
"tuningConfig": {
"type": "index_parallel",
"partitionsSpec": {
"type": "dynamic"
}
},
"dataSchema": {
"dataSource": "kttm_druid",
"timestampSpec": {
"column": "timestamp",
"format": "iso"
},
"dimensionsSpec": {
"dimensions": [
"session",
{
"name": "number",
"type": "float"
},
{
"name": "event",
"type": "json"
},
{
"name": "agent",
"type": "json"
},
"client_ip",
{
"name": "geo_ip",
"type": "json"
},
"language",
"adblock_list",
"app_version",
"path",
"loaded_image",
"referrer",
"referrer_host",
"server_ip",
"screen",
"window",
{
"type": "long",
"name": "session_length"
},
"timezone",
{
"name": "timezone_offset",
"type": "double"
}
]
},
"granularitySpec": {
"queryGranularity": "none",
"rollup": false,
"segmentGranularity": "day"
}
}
}
}
Loading
Loading