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

Updating NLS_DATE_FORMAT config for Analytics #9023

Open
lkokila opened this issue Feb 17, 2025 · 0 comments
Open

Updating NLS_DATE_FORMAT config for Analytics #9023

lkokila opened this issue Feb 17, 2025 · 0 comments

Comments

@lkokila
Copy link

lkokila commented Feb 17, 2025

Current Limitation

NLS_DATE_FORMAT should be configured as 'RRRR/fmMM/fmDD' since some Oracle versions result in errors (refer to below) without this.

`ERROR {io.siddhi.core.aggregation.persistedaggregation.CudStreamProcessorQueueManager} - Error occurred while executing the aggregation for data between 1712534400000 - 1712620800000 for duration DAYS. Attempted re-executing the query for 9 seconds. This Should be investigated since this will lead to a data mismatch
io.siddhi.core.exception.SiddhiAppRuntimeException: Error in manipulating records from datasource 'APIM_ANALYTICS_DB': ORA-01830: date format picture ends before converting entire input string

https://docs.oracle.com/error-help/db/ora-01830/
	at io.siddhi.extension.execution.rdbms.CUDStreamProcessor.process(CUDStreamProcessor.java:248)
	at io.siddhi.core.query.processor.stream.StreamProcessor.processEventChunk(StreamProcessor.java:41)
	at io.siddhi.core.query.processor.stream.AbstractStreamProcessor.process(AbstractStreamProcessor.java:132)
	at io.siddhi.core.aggregation.persistedaggregation.CudStreamProcessorQueueManager.run(CudStreamProcessorQueueManager.java:66)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: java.sql.BatchUpdateException: ORA-01830: date format picture ends before converting entire input string

Refer internal: https://github.com/wso2-enterprise/wso2-apim-internal/issues/5980

Suggested Improvement

Better to update [1] with this information.
[1] https://apim.docs.wso2.com/en/4.0.0/use-cases/streaming-usecase/summarizing-data/

Version

3.2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant