Comments (14)
@sree80 please modify your $PXF_CONF/servers/mydb/report.sql
file with the following:
SELECT dept.name AS name, count(*) AS count, max(emp.salary) AS max
FROM demodb.dept JOIN demodb.emp
ON dept.id = emp.dept_id
GROUP BY dept.name
Please note that I removed the semicolon at the end of the query. We will take this feedback and will create a bug.
from pxf.
I tried it without the semicolon and got the same error. Thank you.
from pxf.
@sree80 I was able to get it to work. In my case I used the mysql
database, and I removed the db name from the table names:
SELECT dept.name AS name, count(*) AS count, max(emp.salary) AS max
FROM dept JOIN emp
ON dept.id = emp.dept_id
GROUP BY dept.name
I hope this helps
from pxf.
In a multinode cluster, you will have to run pxf cluster sync
from pxf.
Same Error , even after removing the db name from the table names.
It looks like it is complaining somewhere around this line - right syntax to use near ':report' at line 1
ERROR: remote component error (500) from '127.0.0.1:5888': type Exception report message You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ':report' at line 1 description The server encountered an internal error that prevented it from fulfilling this request. exception java.io.IOException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ':report' at line 1 (libchurl.c:944) (seg1 slice1 172.17.0.2:50001 pid=8466) (libchurl.c:944)
CONTEXT: External table dept_report
from pxf.
I am using MYSQL 5.1 and JDBC 5.1
from pxf.
I assume you're using the latest code, correct ? You can turn on TRACE level logging and see the exact SQL statement being sent to MySQL via JDBC in pxf-service.log
file.
It looks like maybe if your code is old, the named query feature is not available and query:report
is being used as a table name ?
from pxf.
@sree80 what version of Greenplum are you using? Named query feature was introduced in Greenplum 5.19, make sure you are using Greenplum 5.19 and PXF version 5.4.0
> $PXF_HOME/bin/pxf version
PXF version 5.4.0
from pxf.
PostgreSQL 9.4.20
Greenplum Database 6.0.0-beta.3
PXF version 5.3.2
from pxf.
If i have to upgrade PXF Version to 5.4.0. From where Can I find this Version.
from pxf.
You can get it with Pivotal GPDB 5.19 distribution or build from the open source, but it will not be officially supported by Pivotal with GPDB 6 (beta) until after it ships with the next beta release of Pivotal GPDB 6.
from pxf.
thanks so much.
from pxf.
Thanks for reporting this issue. We added a fix for semicolon. In your case, the query was not working because you are on PXF version 5.3.2 that does not support Named Queries
from pxf.
PXF 5.4.0 is also available at https://github.com/greenplum-db/pxf/releases/tag/5.4.0
from pxf.
Related Issues (20)
- Add support for UUID datatype for JDBC engine HOT 2
- Property SEGMENT-ID has no value in the current request HOT 11
- Failed to install pxf - expected: <5> but was: <0> HOT 3
- Cannot build rpm HOT 3
- PXF - Selecting non-existent parquet files or parquet files with an incomplete schema HOT 2
- How can we collect analytics from PXF logs regarding the work of the pushdown predicate? HOT 4
- Divide Greenplum and PXF on separated servers HOT 1
- make pxf failed HOT 7
- Using a Named Query with Oracle - how exactly works HOT 2
- Allow IN operators in JDBC plugin HOT 2
- Error unexpected end of file HOT 8
- PXF - gs:parquet - Can't get Master Kerberos principal for use as renewer HOT 3
- Parquet data type mapping: support of int64 primitive type for timestamp logical type HOT 1
- pxf make error (make test & make -C) HOT 3
- Compression on external writable tables HOT 1
- failed to load external pxf jdbc table HOT 14
- if we try to install pxf on offline, is it possible? HOT 1
- Pxf error when selecting from hive and inserting into gpdb HOT 2
- 修改PXF_HOST无效,netstat结果pxf进程仍然是监听0.0.0.0:5888,希望监听具体ip HOT 7
- PXF + Hive3 + Hadoop3 with Kerberos 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 pxf.